Reputation: 699
What is a command name for keyboard shortcut in Visual Studio (I use 2012) to collapse/expand all nodes in XML Editor window?
Upvotes: 21
Views: 28484
Reputation: 321
From Tools->Options->Environment->Keyboard->mapping scheme (Default)
For selected areas:
Upvotes: 32
Reputation: 35544
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.
Upvotes: 17