What is Fantomas?
- An opinionated code formatter for F#
- Integrates with most editors
- Implements the F# community style guide
- No need to discuss style in code review
- Cleaner source control diffs
- Peace of mind
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
It's like playing jazz
As a maintainer, Fantomas makes it easy to contribute to my projects - I no longer have to care about spacing or style, Fantomas handles it for me!
Fantomas is the next big thing in the F# ecosystem. Not only does it eliminate the duty for code formatting during typing, but it also integrates into the CI pipeline and automatically check the formatting for you.
Who uses Fantomas?
Fantomas 6: The Legendary Formatter
What is new in Fantomas v6!Read blogpost
Say Hello to
A blogpost about migrating to Fantomas V5Read blogpost
Yesterday I had a blast during the @FSharpLondon meetup! Thanks again for having me! I wrote a blog post that captures some of the story beats from yesterday https://t.co/ViCkmmMSci. I'm really happy how Fantomas v5 is shaping up😊 #fsharp https://t.co/83bjAp9ody— Florian Verdonck (@verdonckflorian) May 24, 2022
A blogpost about how to use a custom version of Fantomas in your editor.Read blogpost
A blogpost about the V5 improvementsRead blogpost
Formatting your code
the easy way
A blogpost by Isaac Abraham from Compositional IT.Read blogpost
A word on
A blogpost about the importance of triple-slash commentsRead blogpost