Recognize JetBrains-style //region / //endregion folding comments in VS Code.
Supported Markers
| Style | Languages |
|---|---|
// region / // endregion |
JS, TS, Java, Go, Rust, Kotlin, Dart, C/C++ |
//#region / //#endregion |
C# style |
# region / # endregion |
Python, Ruby, YAML |
<!-- region --> / <!-- endregion --> |
HTML, XML, Vue |
/* region */ / /* endregion */ |
CSS, SCSS, Less |
Usage
Simply open a file with region comments, and VS Code will show folding markers automatically.