I know I\'m not the first one that would like to have #region
and brace matching support for Javascript. That\'s why I don\'t want to install one by one and see
Since nobody answered my question let me give you some information about JSEnhancements that I installed in the end and am very very pleased with:
#region
in javascripts (// #region Name
) as well as in CSS files (/* #region Name */
) which is really great and they don't interfere with anything since they're part of commentsSometimes you have to close+reopen the file for regions to start working. Sometimes writing them down doesn't recognise them. Newer versions work as expected It obviously works fine when you open the file and it parses it.
Anyway. It's stable, works and I'm very pleased with this extension. You won't miss with its installation.
JScript Editor Extensions is much better than JSEnhancements. It will highlight matching braces, cold-folding the blocks, current word highlighting.
Although it does not support #region name
,
but you can use javascript curly brackets to enclose your code and place a comment above to know what you are making collapsible.
//My region
{
//lines of code
//lines of code
//lines of code
}
these will collapse and don't appear to affect anything else. javascript just treats them as simple compound statement.
Further, I would also recommend Web Standards Update as it also helped me with intellisense and validation.
Well there is one more tool for javascript "Javascript parser" which will parse your files and make a map on it. It is good but for me working with jquery it didn't help much.
Among the rest of the tools you mentioned, I was working too with JSenhancements for some time but I have switched to JScript Editor Extensions which I can tell seems more promising (highlight of current word, para comments etc).
It hasn't crashed since.
Try JScript Editor Extensions by Microsoft for VS2010
Javascript Explorer - Though this will not region'ize your code, it sounds to be handy!