install clang-format (for mac user)
$ brew install clang-formatthen run
$ find . -name "*.proto" | xargs clang-format -iif you are using VSCode, you can install the extension clang-format and add the following configuration to your settings.json
"[proto3]": {
"editor.defaultFormatter": "xaver.clang-format"
},