Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio, Collapse/Extends Regions ONLY shortcut

Is there any shortcut to collapse/expand the regions ONLY? Meaning, if I have a region with 5 methods in it, and I hit collapse, the region will collapse, and when I will hit expand, the region will expand and I will see all 5 methods with the same state as it was before (collapsed/expanded).

Currently the shortcuts I found collapse ALL, or expand ALL, or substitutes the "All" word for the "Current" word.

I'm looking for a shortcut that will collapse only regions, and will not do anything to the other blocks inside a region. Same thing with expanding.

If there is no such thing, maybe someone found some visual extension to do it?

cheers Lucas

like image 287
Lucas Avatar asked May 01 '12 10:05

Lucas


People also ask

How do I Collapse all regions 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 I expand all regions in Visual Studio?

CTRL + M expands region.


1 Answers

why not simply hit

ctrl + m + m

while cursor in #region regionname

like image 178
archil Avatar answered Oct 26 '22 02:10

archil