VSCode默认的代码格式风格实在不爽,尤其是大括号换行,对于小屏电脑实在伤不起。

网上搜索,没有满意答案(说安装eslint那是js的,clang-format本身自带了啊)
最后研究发现,VS Code支持多种代码风格的,设置里面搜索clang_format

除了Visual Studio,还有LLVM,Google,Chromuim, Mozilla, WebKit等格式。
最后选了Google,WebKit也挺不错。
VSCode默认的代码格式风格实在不爽,尤其是大括号换行,对于小屏电脑实在伤不起。
网上搜索,没有满意答案(说安装eslint那是js的,clang-format本身自带了啊)
最后研究发现,VS Code支持多种代码风格的,设置里面搜索clang_format
除了Visual Studio,还有LLVM,Google,Chromuim, Mozilla, WebKit等格式。
最后选了Google,WebKit也挺不错。
本文标题:VS Code中更改C/C++代码格式样式
本文链接:https://www.haomeiwen.com/subject/yuligxtx.html
网友评论