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