Add .clang-format file in project root folder (not proto folder):
.clang-format
Language: Proto AlignConsecutiveAssignments: true
to configure clang-format to vertically align assignments like this:
message CPU { string brand = 1; string name = 2; uint32 cores = 3; uint32 number_threads = 4; double min_ghz = 5; double max_ghz = 6; } message GPU { string brand = 1; string name = 2; double min_ghz = 3; double max_ghz = 4; Memory memory = 5; }
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Add
.clang-format
file in project root folder (not proto folder):to configure clang-format to vertically align assignments like this: