spajus / vscode-auto-region-folder

Auto Region Folder for Visual Studio Code

Home Page:https://marketplace.visualstudio.com/items?itemName=DNEK.auto-region-folder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto Region Folder for Visual Studio Code

This extension folds all regions automatically when open files in Visual Studio Code.

Example of appearance

C++

Before

#pragma region header

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;

#pragma endregion header

int main() {
  rep(i, 42) cout << i << endl;
}

After

#pragma region header

int main() {
  rep(i, 42) cout << i << endl;
}

Markdown

Before

- main content

<!-- #region trivial -->

- trivial content

<!-- #endregion trivial -->

After

- main content

<!-- #region trivial -->

etc

See The official docs.

Practical test

Open this file with Visual Studio Code and see the following region.

Test region

  • This region is automatically folded.

  • On the contrary, the region within the above code block of Markdown is not folded.

Author

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Auto Region Folder for Visual Studio Code

https://marketplace.visualstudio.com/items?itemName=DNEK.auto-region-folder

License:MIT License


Languages

Language:TypeScript 100.0%