zig fmt <files>
Reformat Zig source into canonical form
Arguments
| Name | Description |
|---|---|
files | filepaths |
Options
| Name | Description |
|---|---|
-h, --help | Print help and exit |
--color <arg> | Enable or disable colored message |
--stdin | Format code from stdin; output to stdout |
--check | Format code from stdin; output to stdout List non-conforming files and exit with an error |
--ast-check | Run zig ast-check on every file |
--exclude <file> | Exclude file or directory from formatting |