Y
Hacker News
new
|
ask
|
show
|
jobs
by
berlinquin
928 days 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.
1 comments
smusamashah
928 days ago
C# natively supports `#region <name>` and `#endregion`. IntelliJ supports the same using comments like `//#region <name>`.
link
cglong
928 days ago
TypeScript IDEs also typically support this via `// #region <name>` and `// #endregion`.
link