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

}

文件——首选项——设置

上一篇:填充与复制


下一篇:记录一个使用加密算法过程中遇到的问题