A language-agnostic VS Code extension that auto-formats curly brackets on newline and keeps tab indentation.
✨ Features
- Moves
{ to a new line automatically
- Preserves the current line's tab indentation
- Supports any language (configurable in settings)
- Works out of the box with
C , C++ , and C#
👋 For C# Users
🟢 Good news!
This extension is no longer needed for C#, thanks to a Roslyn pull request that finally fixed the formatting issue.
Just install the official C# extension and enable "Editor: Format On Type":
- Navigate to
File → Preferences → Settings
- Search for "Format On Type"
- Enable it
🛠 Build instructions
Download and install Node.js, then run:
npm install # Install project dependencies
npm install -g @vscode/vsce # Install the vsce tool
vsce package # Package the extension
For more information on creating extensions, check out the VSCode Extension API.
💖 Support

| |