在Visual C#2008 Express的编码时,你可以展开/您可以使用文本编辑器的左上角的+/-符号崩溃的代码段。创建功能时,这些自动出现。

时其无论如何,我可以在展开/折叠点手动添加到的代码段。

有帮助吗?

解决方案

是,可以手动定义一个区域

#region myRegion
// your collapsible code here
#endregion

其他提示

#region Any region name goes here

... code goes here ...

#endregion

注意,#endregion没有空间在它

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top