Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2010 Javascript Matching Brace/Bracket Highlighting

Recently I upgraded to Visual Studio 2010 in the hope that it would provide matching bracket hightlighting for Javascript as it does for C#.

On the project I am working on I am doing more Javascript than C# and I finding the lack of bracket matching quite painful.

Is there any method of turning on this feature for Javascript too?

EDIT December 2015: Right now I am using Viasfora extension which does rainbow braces like vim, emacs. Each bracket pair has is successively given a different color, so you dont have to put the caret next to a bracket. Using it in vs 2013.

like image 381
Tahir Hassan Avatar asked Nov 04 '10 12:11

Tahir Hassan


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 to change braces color in Visual Studio code?

Search for “bracket colorization” and enable the Bracket Pair Colorization option. Or, you can add "editor. bracketPairColorization. enabled": true in settings.

What is the main function of the 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.


1 Answers

Microsoft has released JScript Editor Extensions for this. It also has support for intellisense comments. This works great when referencing in th jQuery vsdoc.

Screenshot

like image 76
pavsaund Avatar answered Oct 08 '22 18:10

pavsaund