Highlight Matching Brace In Visual Studio

Pie picture Pie · Jun 6, 2015 · Viewed 17k times · Source

In Notepad++ for example when your cursor is next to a brace it will highlight the corresponding opening or closing brace on screen.

Check out the link below for a example as to what I mean. http://www.atmel.com/webdoc/visualassist/visualassist._match.html

How can Visual Studio do this?

Answer

Walt Ritscher picture Walt Ritscher · Jun 6, 2015

The Visual Studio 2013 C# editor has brace highlighting. Place the cursor on the outside of the brace, (not the inside) to see the highlight.

Default Brace color

The default color is very subtle, use the Tools\Options\Fonts And Colors setting to apply a different highlight color.

Fonts and Colors setting

New Brace Color