NOTE: as of version 1.17 released September 2017, the core Visual Studio Code supports #region
folding for JavaScript and TypeScript. See https://code.visualstudio.com/updates/v1_17#_editor and https://stackoverflow.com/a/46597272/4200039
Download this extension from the VS Marketplace or get the CI build.
Adds support for region comments in JavaScript and TypeScript files
See the change log for changes and road map.
- Region outlining/folding
- Snippet for inserting region
Creates collapsable regions in the JavaScript/TypeScript document.
Here's the same code collapsed:
A region
snippet is provided in IntelliSense to make it easy to use regions in your code.
This will insert the region and place the cursor in the right location.
Check out the contribution guidelines if you want to contribute to this project.
For cloning and building this project yourself, make sure to install the Extensibility Tools 2015 extension for Visual Studio which enables some features used by this project.