vscode编写C++设置左花括号不换行

习惯在代码中左花括号不换行的风格,网上搜了下,在vscode中settings.json设置如下:

"editor.formatOnSave": true,
    "C_Cpp.clang_format_style": 
    "{ BasedOnStyle: Chromium, IndentWidth: 4}"

猜你喜欢

转载自www.cnblogs.com/ocean1100/p/12355412.html