EVERYTHING XIAOMI
Get listed
Side by side

Prettier vs rustfmt

Prettier logo

Prettier

7.5#1 in code formatting toolsFree plan
Free planWebAPIExtensionLinux
Visit

rustfmt

6.6#4 in code formatting toolsFree plan
Free planLinuxmacOSWindows
Visit

What both publish

FactPrettierrustfmt
ConfigurationConfiguration can use JSON, YAML, TOML, JavaScript or TypeScript files, with overrides for selected files and directories.Configuration can be set in `rustfmt.toml` or `.rustfmt.toml`, and the default style conforms to the Rust style guide.
Editor integrationsThe official site lists integrations or support for VS Code, WebStorm, Visual Studio, Vim, Emacs, Sublime Text, Nova and Espresso.The README lists integrations or usage instructions for Vim, Emacs, Sublime Text 3, Atom, Visual Studio Code, and IntelliJ or CLion.

Prettier plans

  • Open-source PrettierFree
  • PrettierFree

rustfmt plans

  • rustfmtFree

Pick Prettier if…

It suits developers who want consistent code formatting across supported languages and editors. Teams needing additional languages can use plugins, while those using ESLint can follow the documented integration guidance.

Pick rustfmt if…

rustfmt suits Rust developers who want consistent formatting through Cargo, an editor, or CI. It is also relevant to developers who need configurable formatting behavior.

Charts they share