reference:
IDEA
https://zhuanlan.zhihu.com/p/41274595
vscode:
https://www.programmersought.com/article/54984607503/
to sum up:
IDEA installs emmylua plug-in, ctrl+alt+T can choose comment
vscode to open resources\app\extensions\lua\language-configuration.json in the installation directory, add json configuration at the end and restart
"folding": {
"offSide": true,
"markers": {
"start": "^\\s*\\-\\-\\s*region\\b",
"end": "^\\s*\\-\\-\\s*endregion\\b"
}
}