This extension folds all regions automatically when open files in Visual Studio Code.
#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;
}
#pragma region header
int main() {
rep(i, 42) cout << i << endl;
}
- main content
<!-- #region trivial -->
- trivial content
<!-- #endregion trivial -->
- main content
<!-- #region trivial -->
See The official docs.
Open this file with Visual Studio Code and see the following region.
-
This region is automatically folded.
-
On the contrary, the region within the above code block of Markdown is not folded.
This project is licensed under the MIT License - see the LICENSE file for details.