命令折叠所有代码段? [英] Command to collapse all sections of code?

查看:25
本文介绍了命令折叠所有代码段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Visual Studio 中是否有折叠/展开文件中所有代码部分的命令?

In Visual Studio is there a command to collapse/expand all the sections of code in a file?

推荐答案

CTRL + M + O 将全部折叠.

CTRL + M + O will collapse all.

CTRL + M + L 将全部展开.(在 VS 2013 中 - 切换所有大纲)

CTRL + M + L will expand all. (in VS 2013 - Toggle All outlining)

CTRL + M + P 将全部展开并禁用大纲.

CTRL + M + P will expand all and disable outlining.

CTRL + M + M 将折叠/展开当前部分.

CTRL + M + M will collapse/expand the current section.

CTRL + M + A 即使在 Html 文件中也会全部折叠.

CTRL + M + A will collapse all even in Html files.

这些控件也在大纲下的上下文菜单中.

These controls are also in the context menu under Outlining.

在编辑器中右击 ->概述以找到这些控件.(禁用大纲后,使用相同的步骤启用大纲.)

Right click in editor -> Outlining to find these controls. (After disabling outlining, use same steps to enable outlining.)

对于大纲选项:转到工具 ->选项 ->文本编辑器 ->C# ->高级 ->概述选项的概述.

For outlining options: Go to Tools -> Options -> Text Editor -> C# -> Advanced -> Outlining for outlining options.

选项 -> 文本编辑器 -> C# -> 高级 -> 大纲"/>

这篇关于命令折叠所有代码段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆