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.
$ dotnet add package Fantomas.Core
F# source code formatter, inspired by scalariform for Scala, ocp-indent for OCaml and PythonTidy for Python.
dotnet tool install fantomas
Documentation is available at https://fsprojects.github.io/fantomas/docs/index.html
See the Contribution Guidelines and our contributors documentation
202.6K