Search code examples
c#objective-cxcodevisual-studiopragma

Visual Studio/C# code similar to #pragma mark in Xcode


Is there a code snippet in Visual Studio/C# similar to Xcode's #pragma mark directive?

E.g. When setting #pragma mark Some Part Of Code in Xcode, "Some Part Of Code" appears in bold in the method enumeration drop-down list, thus you can use it for grouping methods according to their functionality and finding them easier later when needed.


Solution

  • I think you're looking for #region?

    Else, C# has #pragma too, but from your description it sounds like you want region