其他分享
首页 > 其他分享> > VScode的settings.json配置

VScode的settings.json配置

作者:互联网

{
    "editor.mouseWheelZoom": true,

    "astyle.additional_languages": [
        "c",
        "cpp",
    ],

    "astyle.cmd_options": [
        "--style=allman",//Kernighan&Ritchie 风格格式和缩进
        "--indent=spaces=4",//缩进4个空格
        "--convert-tabs",
        "--align-pointer=name",
        "--align-reference=name",
        "--keep-one-line-statements",
        "--pad-header",
        "--pad-oper",//操作符两端插入一个空格
    ],

    "astyle.executable": "D:\\AStyle\\bin\\astyle.exe",

    "files.encoding":"GB2312",

    "[c]": {
        "editor.defaultFormatter": "chiehyu.vscode-astyle"
    },
    "editor.minimap.enabled": false,
    "[cpp]": {
        "editor.defaultFormatter": "chiehyu.vscode-astyle"
    },
    "workbench.colorTheme": "One Dark Pro",

}

文件——首选项——设置

标签:chiehyu,settings,VScode,defaultFormatter,vscode,json,pad,editor,astyle
来源: https://www.cnblogs.com/CodeWorkerLiMing/p/10992832.html