by anand-bala · 5y ago · 0 comments
If your project is small, just run `zig fmt` on the command line.
If you have a large codebase, you can just incorporate it into your build process (similar to how clang-format and clang-tidy are used in CMake projects).
But again, if you have a large codebase written in Zig, you've probably already configured your editor to run `zig fmt` on save :)
At this point it means you're probably Andrew himself because the Zig compiler is the only large Zig codebase out there;)