Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
berlinquin
· 2y ago · 0 comments
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.
Comments
[–]
smusamashah
2y ago
C# natively supports `#region <name>` and `#endregion`. IntelliJ supports the same using comments like `//#region <name>`.
[–]
cglong
2y ago
TypeScript IDEs also typically support this via `// #region <name>` and `// #endregion`.