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

文件——首選項——設置


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM