Quickstart
To run treefmt in your project, please follow these steps:
- Install the tool.
- Install the needed formatters.
- Run treefmt --init. This will generate the basic configuration filetreefmt.tomlcontaining the formatting rules.
- Edit the configuration (see here how).
- Run treefmtwith the needed flags and options. You can check the supported options by executingtreefmt --help.
In the following sections we will guide you through installing and configuring treefmt in detail.