Scalafmt
Scalafmt: A configurable, open-source formatter for Scala code, scripts, and build files. Ranked #8 of 34 in Code Formatting Tools by our editors (6.6/10); pricing: Free plan; best for scala projects using build tools.
At a glance
- Editor score6.6 / 10
- PricingFree plan
- Best forScala projects using build tools
- Free planYes
- Paid fromNone
- Supported languagesScala 2, Scala 3, sbt, Scala scripts
- Facts checked21 Sep 2026

Where it wins
- Supports Scala 2 and Scala 3 dialects
- Integrates with sbt, Maven, Gradle, and Mill
- Offers editor, changed-file, and library API options
Where it doesn't
- Focused on Scala, sbt, and Scala scripts rather than many languages
- Configuration is managed through a .scalafmt.conf file
- Not a hosted commercial service with paid support tiers
Our verdict on Scalafmt
Scalafmt is an open-source code formatter for Scala projects, including Scala 2, Scala 3, sbt, and Scala script files. It reformats code according to settings in a .scalafmt.conf file and can run through the command line, editors, build tools, or a standalone library. That makes it a strong fit for Scala teams that want formatting to sit inside existing development and build workflows rather than in a separate hosted service.
Its main strength is ecosystem coverage. Official integrations include IntelliJ IDEA, VS Code, Vim, Neovim, Emacs, Sublime Text, Eclipse, and Metals, as well as sbt, Maven, Gradle, and Mill. Developers can use format-on-save in supported editor workflows, validate formatting from the command line, or apply formatting through build tooling. Git diff and changed-file modes can limit formatting to relevant work, while include and exclude path filters provide additional scope control. Teams with project-specific conventions also get formatting controls for selected code regions.
Scalafmt is distributed as open-source software with a free plan, and its standalone library API allows formatting to be incorporated into Scala-based tooling. The breadth is practical for projects that need consistent formatting across editors, continuous build processes, and local validation. Its focus is narrower than a multi-language formatter: the published capabilities center on Scala, sbt, and Scala scripts. Choose Scalafmt when Scala dialect support, build-tool integration, and configurable repository-wide formatting are priorities. Teams seeking a hosted commercial service or formatting across unrelated programming languages should choose an alternative instead.
Scalafmt pricing
Scalafmt fact sheet
| Free plan | Yes |
|---|---|
| Paid from | None |
| Supported languages | Scala 2, Scala 3, sbt, Scala scripts |
| Supported platforms | CLI, editors, build tools, standalone library |
| Editor integration | Yes |
| Ignore files | Yes |
| Changed-lines formatting | Yes |
| Library API | Yes |
| License model | Open_source |
| Deployment | Self-hosted, Desktop |
| Support | Community, Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 12 integrations: IntelliJ IDEA, VS Code, Vim, Neovim, Emacs, Sublime Text … |
| Pricing | Free plan |
| Website | scalameta.org |
| Facts checked | 21 Sep 2026 |
Scalafmt integrations
Scalafmt lists 12 integrations on its own site.
- IntelliJ IDEA
- VS Code
- Vim
- Neovim
- Emacs
- Sublime Text
- Eclipse
- Metals
- sbt
- Maven
- Gradle
- Mill
Alternatives to Scalafmt
- dprintA broad, editor-friendly formatter for multilingual repositories and changed-file workflows.9.0
- PrettierA broad, open-source formatter for web-language teams across editors and workflows.8.2
- SpotlessA build-focused formatter for JVM projects that need broad language coverage and automation.7.7
See all Scalafmt alternatives →
Scalafmt vs the competition
- Scalafmt vs dprint
- Scalafmt vs Prettier
- Scalafmt vs Spotless
- Scalafmt vs clang-format
- Scalafmt vs Biome
- Scalafmt vs Black
Compare Scalafmt with any tool side by side →
Used Scalafmt? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used Scalafmt for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
Scalafmt is listed in our Code Formatting Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/scalafmt/"><img src="https://www.itechguides.com/best/badge/scalafmt.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Sep 2026
Advertiser disclosure: iTechGuides is reader-supported. We may earn a commission when you click some links. It never changes a score or a verdict. How we rank.
Last updated · How we research and update


