[VSCODE] 使用小技巧

VSCode使用小技巧

给python和lua增加region功能

打开D:\Program Files\Microsoft VS Code\resources\app\extensions, 把路径改为自己的,打开 python 和 lua 目录,修改其中的 language-configuration.json 文件,在配置文件最后加上如下代码

python

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

lua

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

改完后记得要重启vscode才会生效

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2022 Mr.Yao
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信