EVERYTHING XIAOMI
Get listed
Side by side

Prettier vs Scalafmt

Prettier logo

Prettier

7.6#1 in code formatting toolsFree plan
Free planWebAPIExtensionLinux
Visit
Scalafmt logo

Scalafmt

6.0#24 in code formatting toolsFree plan
Free planLinuxmacOSSelf-hostedWindows
Visit

What both publish

FactPrettierScalafmt
ConfigurationConfiguration can use JSON, YAML, TOML, JavaScript or TypeScript files, with overrides for selected files and directories.Formatting options are set in a plain text .scalafmt.conf file using HOCON syntax.
Editor integrationsThe official site lists integrations or support for VS Code, WebStorm, Visual Studio, Vim, Emacs, Sublime Text, Nova and Espresso.The documentation describes use with IntelliJ, VS Code, Vim, NeoVim, Emacs, Sublime Text, and Eclipse, with Metals supporting formatting requests from editors.

Prettier plans

  • Open-source PrettierFree
  • PrettierFree

Scalafmt plans

  • FreeFree

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 Scalafmt if…

Scalafmt suits Scala developers and teams seeking consistent formatting through editors, build tools, or the command line. It is also relevant for projects using sbt files or Scala scripts.

Charts they share