install clang-format (for mac user)
$ brew install clang-format
then run
$ find . -name "*.proto" | xargs clang-format -i
if 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"
},