Reputation: 10863
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.
Upvotes: 3
Views: 4436
Reputation: 211
Try JSEnhancements under VS 2010 Extension Manager under Tools menu.
http://www.martinilab.com/blog/253/vs2010-javascript-collapsing/
Upvotes: 9
Reputation: 10863
Ah! I got to figure out. But I couldn't auto outline it.
This solution works in VS2010. I've not checked with VS2008.
Ctrl + M, Ctrl + T
Anyways, now I cannot figure out the shortcut key to expand this particular block which was collapsed in the above mentioned way because Ctrl + M, Ctrl + M
is not toggling this block.
Upvotes: 1