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.
有没有办法设置 Visual Studio 2008 在第一次打开后面的代码时自动折叠区域/功能/方法?
在 Visual Studio 2010 中,这似乎会自动折叠区域,但不会自动折叠方法、类等:
工具 -> 选项 -> 文本编辑器 -> C# -> 高级 -> 勾选“打开文件时进入大纲模式”。
我使用快捷键 Ctrl + M, L 来切换折叠区域。