Visual Studio: Expand or Collapse Region or Code section

Been using it for a while and started to love the function. One colleague of mine asked me how I did it. Thought it would be worth a post over here:

Using Shortcut keys
Ctrl-M, Ctrl-O will collapse all of the code to its definitions.
Ctrl-M, Ctrl-L will expand all of the code (actually, this one toggles it).
Ctrl-M, Ctrl-M will expand or collapse a single region

P/S: The menus for expanding and collapsing code can also be found under Edit->Outlining

Written by admin on January 22nd, 2010 with no comments.
Read more articles on Knowledge Base and Personal and Programming.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .