Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如你可以从标题中猜到的那样,带有区域的概述最终让我感到恶心。
我记得在某处的评论中读到,可以使用宏来执行此任务。由于我从未为 VS 编写过一个宏,因此我请求社区帮助。
如何?
对于 VB,
工具 -> 选项 -> 文本编辑器 -> 基本 -> VB 特定 -> 打开文件时进入大纲模式。
对于 C#,
工具 -> 选项 -> 文本编辑器 -> C# -> 高级 -> 打开文件时进入大纲模式。
对于 C/C++,
工具 -> 选项 -> 文本编辑器 -> C/C++ -> 格式化 -> 打开文件时进入大纲模式。