Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regions/code collapse in Javascript in Visual Studio 2010

Is it possible to create code regions in JS files in Visual Studio 2010?

This method works in 2005, but I can't get working in 2010.

like image 939
Mr. Flibble Avatar asked May 27 '10 17:05

Mr. Flibble


People also ask

How do you collapse a region in Visual Studio?

(Ctrl+M, Ctrl+P) - Removes all outlining information for the entire document. (Ctrl+M, Ctrl+U) - Removes the outlining information for the currently selected user-defined region. Not available in Visual Basic. (Ctrl+M, Ctrl+O) - Collapses the members of all types.

How do you collapse all regions in Visual Studio Code?

Use Shift + Click on the folding icon to fold or unfold the region and all regions inside. You can also use the following actions: Fold (Ctrl+Shift+[) folds the innermost uncollapsed region at the cursor.

How do I collapse a div in Visual Studio Code?

Ctrl + Shift + [ on Windows and Linux. ⌥ + ⌘ + [ on macOS.

How do I collapse and expand code in Visual Studio?

CTRL + M + O will collapse all. CTRL + M + P will expand all and disable outlining. CTRL + M + M will collapse/expand the current section.


1 Answers

Here is a very cool VS2010 extension for Javascript and CSS outlining http://jsoutlining.codeplex.com/

like image 140
Alex Yeung Avatar answered Sep 30 '22 18:09

Alex Yeung