ASfdsa33
ASfdsa33

Reputation: 97

Some kind of "regions" in TypeScript and VisualStudio(2013)

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

Upvotes: 2

Views: 406

Answers (1)

timnavigate
timnavigate

Reputation: 739

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

Upvotes: 2

Related Questions