Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Curly FormatterNew to Visual Studio Code? Get it now.
Curly Formatter

Curly Formatter

ironcutter24

|
19,633 installs
| (34) | Free
Formats curly brackets on newline and keeps tab indentation.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Curly Formatter

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":

  1. Navigate to File → Preferences → Settings
  2. Search for "Format On Type"
  3. 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

Ko-fi

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft