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;
}