What are shortcuts for expand / collapse all regions in Visual Studio?

Wednesday, April 20, 2011 11:02:00 AM Categories: Shortcuts Visual Studio

I like short cuts.  Here is a nice one I found while searching how to expand regions in Visual Studio.

What are shortcuts for expand / collapse all regions in Visual Studio?

Regions in code break up  a code and make it easy to look thru.

CTRL+M CTRL+M (that's two key presses!) - collapse/open the current parent region

CTRL+M CTRL+L - Collapse/Open all regions in document recursively (meaning you might get only one line in the document - one big namespace region which is collapsed or you'll see the entire page code uncollapsed

CTRL+M CTRL+O - Collapse all regions not recursively

Source: http://www.karpach.com/Shortcuts-expand-collapse-regions-Visual-Studio.htm
Comments are closed on this post.