F# source code formatter

Quickstart Try Online!
Nuget Shield

FANTOMAS

What is Fantomas?

Why?

  • No need to discuss style in code review
  • Cleaner source control diffs
  • Peace of mind

Get started

Install Fantomas as .NET tool

dotnet tool install fantomas

Copy to clipboard

The easiest way to get started is to install Fantomas as a local .NET tool.
Check out our documentation for more details.

What people say about Fantomas

Who uses Fantomas?

F# compiler logo

dotnet/fsharp

Darklang logo

darklang/dark

FsAutocomplete Ionide logo

fsharp/FsAutoComplete

Fantomas logo

fsprojects/Fantomas

Fabulous logo

fsprojects/Fabulous

FSharp.Data logo

fsprojects/FSharp.Data

Default GitHub logo

TheAngryByrd/MiniScaffold

Farmer logo

CompositionalIT/farmer

Plotly.NET logo

plotly/Plotly.NET

Pluralsight logo

Pluralsight

FAKE logo

fsprojects/FAKE

FsHttp logo

fsprojects/FsHttp

Fable

fable-compiler/fable

Your logo here?

Sponsors

Enterprise sponsors

Community sponsors

Media

Fantomas 6: The Legendary Formatter

What is new in Fantomas v6!

Read blogpost
Say Hello to Fantomas 5

A blogpost about migrating to Fantomas V5

Read blogpost
Fantomas Daemon

A blogpost about how to use a custom version of Fantomas in your editor.

Read blogpost
World domination, part one

A blogpost about the V5 improvements

Read blogpost
Formatting your code the easy way

A blogpost by Isaac Abraham from Compositional IT.

Read blogpost
Custom Ranges
Watch on YouTube
A word on triple-slash comments

A blogpost about the importance of triple-slash comments

Read blogpost
Join us on Discord Discord image link