Formatter
Appearance
A formatter is a program that automatically indents program source code according to some rules, either predefined or declared in a configuration file.
A formatter for your programming language can be installed natively using the following packages.
Tip If your language is not in the list, search in the Arch official repositories or in the AUR. Some programming languages have their own package registry and you may have better luck finding formatter for that language there if it is not packaged in the Arch official repositories or AUR. Lastly, you can try package mangers focusing on development tools like Nix or mise.
Note
- If you want to integrate a formatter into your text editor (e.g. add format-on-save functionality), refer to Language Server Protocol page. Some Language Servers provide formatting functionality built in, while others require external formatting provider. In such case, look for it in this list.
- Some programming languages provide a formatter out of the box, so you only need to install the package for their official compiler/interpreter or build system. If this is the case, it will be listed here as "Formatter package".