2

usually we use "regions" in c#, but we miss that feature in typescript.

Is there some kind of grouping ?

I was reading this article(stackoverflow) and I was wondering may be something has change until now(better plugins) ?

Ty

Community
  • 1
  • 1
ASfdsa33
  • 97
  • 1
  • 9

1 Answers1

1

If you use VSCode (from version 1.17) you can do it like this:

  • TypeScript/JavaScript: //#region and //#endregion and //region and //endregion
  • C#: #region and #endregion
  • C/C++: #pragma region and #pragma endregion
  • F#: //#region and //#endregion
  • PowerShell: #region and #endregion
  • VB: #Region and #End Region

More about this on link: folding regions

timnavigate
  • 741
  • 4
  • 12
  • 23