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

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

问题描述

在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 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 outlining.)

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

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