How to Collapse Section of Code in Visual Studio 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 , Visual Studio 2015 , Visual Studio 2017 and Visual Studio 2019.

How to Collapse Section of Code in Visual Studio 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.

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the error code “SCC_E_BACKGROUNDGETINPROGRESS” returned by the Visual Studio when using the Source Control...
In this post, you’ll learn about the error code “SCC_E_UNKNOWNERROR” returned by the Visual Studio when using the Source Control...
In this post, you’ll learn about the error code “SCC_E_CONNECTIONFAILURE” returned by the Visual Studio when using the Source Control...