zig fmt <files>

Reformat Zig source into canonical form

Arguments

NameDescription
filesfilepaths

Options

NameDescription
-h, --helpPrint help and exit
--color <arg>Enable or disable colored message
--stdinFormat code from stdin; output to stdout
--checkFormat code from stdin; output to stdout List non-conforming files and exit with an error
--ast-checkRun zig ast-check on every file
--exclude <file>Exclude file or directory from formatting