Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to collapse JavaScript function/comment blocks in VS2010/VS2008

I don't think it is possible right now in VS2010/VS2008 but I'm sure someone must have done or can come up with some workaround using the extensibility of VS2010/VS2008.

Ability to collapse javascript function/comment blocks within script tag in an aspx file editor and in javascript(*.js) file editor the same way we can do in any other editor (c#,vb,xml).

I was just thinking that if it is possible by creating #region blocks as we do in c# editor.

like image 426
IsmailS Avatar asked May 18 '26 07:05

IsmailS


1 Answers

Try JSEnhancements under VS 2010 Extension Manager under Tools menu.

http://www.martinilab.com/blog/253/vs2010-javascript-collapsing/

like image 55
markhoward02 Avatar answered May 20 '26 21:05

markhoward02