Visual Studio Collapse Region Label List?

Is there a shortcut in Visual Studio that will minimize all regions or + signs so that I don’t have to go through them and click each one?

+46
visual-studio keyboard-shortcuts
Nov 12 2018-10-12
source share
3 answers
Cm, Co // collapse all Cm, Cl // expand all Cm, Cm // collapse, expand one 

Where C is not suitable for Ctrl . You can find additional shortcuts on msdn website

You can find the commands by going to the "Keyboard Settings" in the "Tools" menu, they are displayed in these commands

  • Edit .CollapseToDefinitions ( Cm, Co ),
  • Edit.ToggleOutliningExpansion ( Cm, Cm ) and
  • Edit.ToggleAllOutlining ( Cm, Cl )

enter image description here




If you use Visual Studio Code, the commands are similar, but they work differently. The teams are approximately like this

  • Ck 2 - Fold Level 2
  • Ck Cj - Expand All
  • Ck [ - Expand recursively (expand where the carriage is)

You can search for Fold or Unfold commands (using CSp ) to find them all.

+82
Nov 12 2018-10-12
source share
  • Ctrl + M , M - expand / collapse in the carriage
  • Ctrl + M , O - collapse everything in the document
  • Ctrl + M , L - expand everything in the document
+49
Nov 12 '10 at 13:51
source share

Ctrl + M , Ctrl + M

You can also do this by choice.

+6
Nov 12 2018-10-12
source share



All Articles