madskristensen / JavaScriptRegions

A Visual Studio extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

JavaScript Regions

Build status

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.

Features

  • Region outlining/folding
  • Snippet for inserting region

Outlining

Creates collapsable regions in the JavaScript/TypeScript document.

Region Code

Here's the same code collapsed:

Region Collapsed

Snippet

A region snippet is provided in IntelliSense to make it easy to use regions in your code.

Completion region

This will insert the region and place the cursor in the right location.

Region Snippet

Contribute

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.

License

Apache 2.0

About

A Visual Studio extension

License:Other


Languages

Language:C# 100.0%