top | item 38490292

(no title)

berlinquin | 2 years ago

Have been using a version of this recently: with C++ in Visual Studio you can add `#pragma region X` that will let you expand/collapse regions of code in the same file. Can be useful for top-level organization.

discuss

order

smusamashah|2 years ago

C# natively supports `#region <name>` and `#endregion`. IntelliJ supports the same using comments like `//#region <name>`.

cglong|2 years ago

TypeScript IDEs also typically support this via `// #region <name>` and `// #endregion`.