Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command name for Collapse All,Expand All Nodes in XML Editor

What is a command name for keyboard shortcut in Visual Studio (I use 2012) to collapse/expand all nodes in XML Editor window?

like image 820
dbardakov Avatar asked Jul 19 '13 12:07

dbardakov


People also ask

How do I collapse a row in XML?

In the XML Editor, hover to the left of a heading, paragraph, drop-down, snippet, image, table, etc. Click the angled arrow . You also have the option of right-clicking the content or structure bar and selecting Collapse, or placing the cursor on the content and pressing ALT+SHIFT+C.

How do you collapse all or code?

Fold Recursively (Ctrl+K Ctrl+[) folds the innermost uncollapsed region at the cursor and all regions inside that region. Unfold Recursively (Ctrl+K Ctrl+]) unfolds the region at the cursor and all regions inside that region. Fold All (Ctrl+K Ctrl+0) folds all regions in the editor.

How do I collapse all nodes in Visual Studio?

CTRL + M + O will collapse all.

How do you collapse all nodes in Notepad ++?

Expand/Collapse keystrokes in Notepad++ In a document type such as HTML or XML, you can expand or collapse an element or block via: Ctrl Alt F to collapse current level. Ctrl Alt Shift F to expand ( uncollapse current level )


2 Answers

From Tools->Options->Environment->Keyboard->mapping scheme (Default)

  • Expand all: CTRL + M, CTRL + X
  • Collapse all: CTRL + M, CTRL + A

For selected areas:

  • Expand selection: CTRL + M, CTRL + E
  • Collapse selection: CTRL + M, CTRL + S
like image 107
simonatstcolumb Avatar answered Sep 19 '22 16:09

simonatstcolumb


Its Edit.ExpandAllOutlining and Edit.CollapseAllOutlining i think.

See Menu Edit->Outlining in Visual Studio. Here´s the reference from MSDN

  • Hide Selection (CTRL + M , CTRL + H) - Collapses a selected block of code that would not normally be available for outlining, for example an if block. To remove the custom region, use Stop Hiding Current (or CTRL + M, CTRL + U). Not available in Visual Basic.
  • Toggle Outlining Expansion Reverses the current hidden or expanded state of the innermost outlining section when the cursor lies in a nested collapsed section.
  • Toggle All Outlining (CTRL + M, CTRL + L) - Sets all regions to the same collapsed or expanded state. If some regions are expanded and some collapsed, then the collapsed regions are expanded.
  • Stop Outlining (CTRL + M, CTRL + P) - Removes all outlining information for the entire document.
  • Stop Hiding Current (CTRL + M, CTRL + U) - Removes the outlining information for the currently selected user-defined region. Not available in Visual Basic.
  • Collapse to Definitions (CTRL + M, CTRL + O) - Collapses the members of all types.
like image 25
Jehof Avatar answered Sep 21 '22 16:09

Jehof