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 C# Express 2008 中编码时,您可以使用文本编辑器左上角的 +/- 符号展开/折叠代码段。这些会在创建函数时自动出现。
无论如何我可以手动将展开/折叠点添加到代码段。
是的,您可以手动定义区域
#region myRegion // your collapsible code here #endregion
#region 任何区域名称都放在这里 ...代码在这里... #endregion
请注意,#endregion 中没有空格。