10

After short reach i found answers that CTRL+M, CTRL+L do that but this only works on specific block and not all the code sections like Ctrl + m + O under code behind.

ToolmakerSteve
  • 18,547
  • 14
  • 94
  • 196
mot rer
  • 153
  • 2
  • 9

2 Answers2

20

Use CTRL+M, CTRL+A

See here for the complete list.

boop
  • 7,413
  • 13
  • 50
  • 94
Mike Eason
  • 9,525
  • 2
  • 38
  • 63
  • NOTE: The name of command is "Collapse All Outlining". A related command is "Toggle All Outlining"; when adding to a toolbar via Tools/Customize, that one is found as: "Edit" / "Outline Toggle All". – ToolmakerSteve May 13 '20 at 21:06
3

Now, in Visual studio 2019 after selecting the codes (Ctrl + A) the Ctrl + M + S works for me to collapse all codes in XAML.

L_J
  • 2,351
  • 10
  • 23
  • 28