Skip to main content
Any Framework

This library aims at formatting F# source files based on a given configuration. Fantomas will ensure correct indentation and consistent spacing between elements in the source files. Some common use cases include: (1) Reformatting a code base to conform a universal page width (2) Converting legacy code from verbose syntax to light syntax (3) Formatting auto-generated F# signatures.

Published
Mar 9, 2026
7mo ago
Total Downloads
3.5M
3,453,877

Install

dotnet add package fantomas --version 8.0.0-alpha-005

No framework information available.

README

Fantomas

Fantomas logo

GitHub Workflow Status (event) Discord Nuget (with prereleases)

An opinionated F# source code formatter.

dotnet tool install fantomas

Documentation is available at https://fsprojects.github.io/fantomas/docs/index.html

Contributing Guidelines

See the Contribution Guidelines and our contributors documentation

Changes from Previous Version

No structural changes between v8.0.0-alpha-004 and v8.0.0-alpha-005.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.