Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Brace highlighting in Visual Studio for Javascript?

Is there a way to get Visual Studio 2008 to do matching brace highlighting for Javascript?

If there is no way to do it in Studio, can it be done using ReSharper?

Thanks!!

like image 962
Steve Horn Avatar asked Oct 31 '08 12:10

Steve Horn


People also ask

How do you highlight braces in Visual Studio?

To specify the color to highlight matching delimiters, go to Visual Studio options (Tools | Options), open the Environment | Fonts and Colors page, and select the desired colors for the ReSharper Brace Outline and/or ReSharper Matched Brace items.

How do I change the color of my braces in Visual Studio?

To change item foreground and background colors in Visual Studio 2010 Ultimate fallow this: Tools->Options->Environment->General->Fonts and Colors. This worked for me to change Brace Matching(Rectangle) from default color which was barley visible, to my own chosen color.

What is the main function of highlight matching brackets option?

Bracket-matching provides visual cues illustrating the location of matched pair elements. With bracket-matching enabled, positioning the cursor on one paired element highlights the matching element in the code sequence.


2 Answers

Note that Visual Studio will still find a matching brace in JavaScript via Ctrl + ].

like image 120
Ishmael Avatar answered Oct 17 '22 18:10

Ishmael


Here is an extension for VS2010 that will do just what you desire. And it's free!

http://visualstudiogallery.msdn.microsoft.com/872d27ee-38c7-4a97-98dc-0d8a431cc2ed

like image 22
Dan Balthaser Avatar answered Oct 17 '22 18:10

Dan Balthaser