IntelliJ IDEA:使用类似C#的region注释进行代码折叠(包含vscode实现方法)

参考:

IDEA

    https://zhuanlan.zhihu.com/p/41274595

vscode:

    https://www.programmersought.com/article/54984607503/

总结:

    IDEA装emmylua插件,ctrl+alt+T则可以选择注释

    vscode去打开安装目录下的resources\app\extensions\lua\language-configuration.json,尾行添加json配置然后重启即可

"folding": {
        "offSide": true,
        "markers": {
            "start": "^\\s*\\-\\-\\s*region\\b",
            "end": "^\\s*\\-\\-\\s*endregion\\b"
        }
    }

猜你喜欢

转载自blog.csdn.net/qq1090504117/article/details/115388940
今日推荐