安装clang-format
-
windows
-
mac
brew install clang-format
Which clang-format
goland 配置
设置---Tools---File Watchers---新增
image-20220222112247249.png-style="{editor.defaultFormatter: zxh404.vscode-proto3}"
-i
$FilePath$
保存Goland配置并重启Goland,proto文件发生修改则可立即被格式化
网友评论