1. 安装插件 Clang-Format
2. 安装 clang-format
如, centos9 :
sudo yum install git-clang-format
3. 添加配置
如:
{
"clang-format.language.proto.style": "{BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 0, AlignConsecutiveAssignments: true, AlignConsecutiveAssignments: true}",
"clang-format.language.proto.fallbackStyle": "google",

文章介绍了如何在CentOS9系统上安装Clang-Format和git-clang-format插件,以及如何设置Clang-Format的配置,采用Google编码风格,特别提到了对proto3文件的格式化处理。
最低0.47元/天 解锁文章
379

被折叠的 条评论
为什么被折叠?



