Quick start
To run treefmt
in your project, follow these steps:
- Install
treefmt
. - Ensure any formatters you wish to use are also installed e.g.
gofmt
- Run
treefmt --init
to generate a basic configuration filetreefmt.toml
. - Edit
treefmt.toml
, configuring formatters as desired. - Run
treefmt
anywhere in your project to format the whole tree.