Cloud Training (Online)




How to Collapse Section of Code in Visual Studio 2012 using shortcut key?

This blog post will list of some of the shortcuts that can be used to collapse or expand the section of code in Microsoft Visual Studio 2012.

How to Collapse Section of Code in Visual Studio 2012 using shortcut key?

  • Ctrl + M + O – This shortcut key will collapse all the sections of the code in the current form.
  • Ctrl + M + M – This shortcut key will expand/collapse the current section.
  • Ctrl + M + L – This shortcut key will expand all the sections.
  • Ctrl + M + P – This shortcut key will disable the outlining in the editor and expand all the sections.
Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.