views:

1480

answers:

5

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!!

A: 

http://stackoverflow.com/questions/51088/plugin-for-r-similar-to-coderush-statement-highlight#51107

loraderon
I have matching brace highlighting on in ReSharper, and still does not work in Javascript.
Steve Horn
I know CodeRush supports some refactorings in javascript, don't know if this is supported though.
loraderon
@Steve Horn: in R#, assign some key to Resharper.GotoBrace in the keyboard mapper under VS Tools menu. It works in Javascript.
Tony_Henrich
A: 

For what it's worth, I use the most excellent ViEmu plugin for visual studio, and it supplies the Vi(m) paren/brace/bracket matching.

ViEmu is here

Of course, if you're not a Vi lover, the price for matching parens may be too high. ;)

Afton
+3  A: 

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

Ishmael
+2  A: 

You could give Visual Assist X a go: http://www.wholetomato.com/

redwyre
+1  A: 

(I would add a comment to the previous post by redwyre but I don't have enough rep.)

Visual Assist X does do brace highlighting for javascript blocks in html and asp files as well as in js files.

sean e