IntelliJ IDEA: Use C#-like region annotations for code folding (including vscode implementation methods)

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

 

Guess you like

Origin blog.csdn.net/qq1090504117/article/details/115388940