visual-studio Visual Studio - 命令折叠标记/标签的所有部分?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1729841/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 11:13:09  来源:igfitidea点击:

Visual Studio - Command to collapse all sections of markup/tags?

visual-studio

提问by Albert

I use CTRL + M + O to collapse my code behind code, but I'm looking for a similar command to use in my markup page to collapse all my tags/views/divs/panels etc. Any ideas?

我使用 CTRL + M + O 来折叠代码背后的代码,但我正在寻找一个类似的命令来在我的标记页面中使用来折叠我的所有标签/视图/divs/面板等。有什么想法吗?

回答by

CTRL+ M+ Aworked for me in Visual Studio 2010

CTRL+ M+A在Visual Studio 2010对我来说有效

回答by Albert

I figured out that if I Select-All, and then use CTRL-M, CTRL-Mthat I achieve the desired results...

我发现如果我全选,然后使用CTRL-MCTRL-M我会达到预期的结果......

回答by Chris

Visual Studio 2008 keyboard shortcuts.

Visual Studio 2008 键盘快捷键

CTRL+ M, CTRL+ Tmight be the one you're looking for.

CTRL+ M, CTRL+T可能就是您要找的那个。

回答by akshay5662

"CTRL + M + A" For Collapse All Open Html Content ,Vice Versa use "CTRL + M + X" To Open All Collapsed All Html Content -- Thats work fine for me VS2012

“CTRL + M + A”用于折叠所有打开的 Html 内容,反之亦然,使用“CTRL + M + X”打开所有折叠的所有 Html 内容——这对我来说很好用 VS2012