News for hackers. Stuff that matters.
Re:Should you split that file? by berlinquin on Friday December 01, 2023 @01:24PM (#38490292)
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.
Re:Should you split that file? by smusamashah on Friday December 01, 2023 @01:29PM (#38490371)
C# natively supports `#region <name>` and `#endregion`. IntelliJ supports the same using comments like `//#region <name>`.
Re:Should you split that file? by cglong on Friday December 01, 2023 @03:38PM (#38492003)
TypeScript IDEs also typically support this via `// #region <name>` and `// #endregion`.