Command to collapse all sections of code?
在Visual Studio(2008)中是否有命令来折叠/展开文件中的所有代码段?
CTRL + M + O will collapse all.
CTRL + M + L will expand all. (in VS 2013 - Toggle All outlining)
CTRL + M + P will expand all and disable outlining.
CTRL + M + M will collapse/expand the current section.
CTRL + M + A will collapse all even in Html files.
These options are also in the context menu under Outlining.
Right click in editor -> Outlining to find all options. (After disabling outlining, use same steps to enable outlinging.)
The following key combinations are used to do things:
CTRL + M + M ------> Collapse / Expand current preset area (eg Method)
CTRL + M + H ------> Collapse / Hide (Expand) current selection
CTRL + M + O ------> Collapse all(Collapse declaration bodies)
CTRL + M + A ------> Collapse all
CTRL + M + X ------> Expand all
CTRL + M + L ------> Toggle all
There some options in the context menu under Outlining.
CTL + M + L expands all
CTL + M + O collapses all
In the MSDN article "Default Keyboard Shortcuts in Visual Studio," see the section "Text Editor" if you're looking for other shortcuts - these 2 are just a few of the many that are available.
链接地址: http://www.djcxy.com/p/14828.html上一篇: Android布局:二次视图
下一篇: 命令折叠代码的所有部分?