Rainbow Braces for Visual Studio
Download this extension from the Visual Studio Marketplace or get the CI build.
Colorizes matching brace pairs to make it easy to identify them and their scope. Works for curly brackets, parentheses, square brackets and angle brackets. Inspired by the Bracket pair colorization feature request for Visual Studio (please go vote for it).
Both light and dark themes are supported.
Razor templates (.razor) are now supported.
To toggle the brace colorization on and off, a menu item is available under the Edit -> Advanced menu or using the shortcut Ctrl+Shift+9.
You can customize the colors from the Tools -> Options dialog.
There are also a few other specific options available under the Fonts and Colors tree node.
Colorize vertical lines
For more advanced features, I recommend the free Viasfora extension by Tomas Restrepo.
How can I help?
If you enjoy using the extension, please give it a ★★★★★ rating on the Visual Studio Marketplace.
Should you encounter bugs or if you have feature requests, head on over to the GitHub repo to open an issue if one doesn't already exist.
Pull requests are also very welcome, since I can't always get around to fixing all bugs myself. This is a personal passion project, so my time is limited.
Another way to help out is to sponsor me on GitHub.