문제

when coding in Visual C# Express 2008 you can expand/collapse code segments using the +/- symbols on the left hand corner of the text-editor. These appear automatically when a function is created.

Is their anyway i can manually add a expand/collapse point to a code segment.

도움이 되었습니까?

해결책

Yes, you can define a region manually

#region myRegion
// your collapsible code here
#endregion

다른 팁

#region Any region name goes here

... code goes here ...

#endregion

Note that the #endregion has no space in it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top