Question
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.
Solution
Yes, you can define a region manually
#region myRegion
// your collapsible code here
#endregion
OTHER TIPS
#region Any region name goes here ... code goes here ... #endregion
Note that the #endregion has no space in it.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow