visual-studio 在 Visual Studio 中关闭自动大纲

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1709212/
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:12:10  来源:igfitidea点击:

Turning off automatic outlining in Visual Studio

visual-studio

提问by Michael J

Can any one tell me how to turn off automatic outlining in Visual Studio? Outlining is the feature that collapses code into programmer defined regions.

谁能告诉我如何在 Visual Studio 中关闭自动大纲?大纲是将代码折叠到程序员定义的区域的功能。

In my opinion, there are precious few circumstances where outlining is useful. Yes, it makes large files easier to navigate, but mostly it obscures complexity. My preference would be to have this feature turned off by default when opening a source file.

在我看来,在极少数情况下,大纲是有用的。是的,它使大文件更易于导航,但主要是它掩盖了复杂性。我的偏好是在打开源文件时默认关闭此功能。

回答by Michael J

In Visual Studio, go to Tools> Options> Text Editor> C#> Advanced

在 Visual Studio 中,转到Tools> Options> Text Editor> C#>Advanced

Clear the checkbox Enter outlining mode when files open

清除复选框 Enter outlining mode when files open

回答by Philip Wallace

Tools -> Options -> Text Editor -> C# -> Advanced -> Outlining.

工具 -> 选项 -> 文本编辑器 -> C# -> 高级 -> 大纲。

回答by Kaido

For VB it's Tools - Options - Text Editor - Basic - VB Specific - Enable outlining mode

对于 VB,它是工具 - 选项 - 文本编辑器 - 基本 - VB 特定 - 启用大纲模式

回答by Jeff Paquette

For VS2008, it's under Tools – Options – Text Editor – C/C++ - Formatting - Enter outlining mode when files open.

对于VS2008,它在工具-选项-文本编辑器-C/C++-格式-打开文件时进入大纲模式。