Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience real numbers from our own analytics — open to see them
–Visitors
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · counted by iTechGuides's own first-party analytics, bots removed, every figure rounded down · how we count

Scalafmt

Free#8 of 34 in Code Formatting Tools

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.

6.6/10Editor score
Scalafmt6.6 Visit Scalafmt

At a glance

  • Editor score
    6.6 / 10
  • Pricing
    Free plan
  • Best for
    Scala projects using build tools
  • Free plan
    Yes
  • Paid from
    None
  • Supported languages
    Scala 2, Scala 3, sbt, Scala scripts
  • Facts checked
    21 Sep 2026
Scalafmt screenshot
  • 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

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on scalameta.org

Scalafmt fact sheet

Free planYes
Paid fromNone
Supported languagesScala 2, Scala 3, sbt, Scala scripts
Supported platformsCLI, editors, build tools, standalone library
Editor integrationYes
Ignore filesYes
Changed-lines formattingYes
Library APIYes
License modelOpen_source
DeploymentSelf-hosted, Desktop
SupportCommunity, Docs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
Integrations12 integrations: IntelliJ IDEA, VS Code, Vim, Neovim, Emacs, Sublime Text …
PricingFree plan
Websitescalameta.org
Facts checked21 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

See all Scalafmt alternatives →

Scalafmt vs the competition

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

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — Scalafmt 6.6/10

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