Fantomas 2.9.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Fantomas --version 2.9.1
                    
NuGet\Install-Package Fantomas -Version 2.9.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fantomas" Version="2.9.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fantomas" Version="2.9.1" />
                    
Directory.Packages.props
<PackageReference Include="Fantomas" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fantomas --version 2.9.1
                    
#r "nuget: Fantomas, 2.9.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fantomas@2.9.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fantomas&version=2.9.1
                    
Install as a Cake Addin
#tool nuget:?package=Fantomas&version=2.9.1
                    
Install as a Cake Tool

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Fantomas:

Package Downloads
dotnet-fantomas

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.

Falanx.Machinery

Package Description

GiraffeGenerator.Core

Package Description

CellScript.FCS

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.0.0-alpha-007 78 3/10/2026
8.0.0-alpha-006 76 3/9/2026
8.0.0-alpha-005 75 3/9/2026
8.0.0-alpha-004 74 3/7/2026
8.0.0-alpha-003 87 3/3/2026
8.0.0-alpha-002 327 12/15/2025
8.0.0-alpha-001 121 12/12/2025
7.0.5 55,787 12/5/2025
7.0.4 1,200 12/5/2025
7.0.3 99,218 7/4/2025
7.0.2 40,300 5/28/2025
7.0.1 54,419 2/21/2025
7.0.0 63,700 1/10/2025
7.0.0-beta-001 335 12/30/2024
7.0.0-alpha-004 1,076 12/12/2024
7.0.0-alpha-003 1,209 11/29/2024
7.0.0-alpha-002 375 11/2/2024
7.0.0-alpha-001 229 9/16/2024
6.3.16 71,172 10/29/2024
2.9.1 5,323 11/20/2018
Loading failed

Added instructions for vscode and online website. [#333](https://github.com/fsprojects/fantomas/pull/333)
Removed trailing spaces for each line after formatting. [#328](https://github.com/fsprojects/fantomas/issues/328)
Allow easy build/format/build cycle of external projects. [#337](https://github.com/fsprojects/fantomas/pull/337)
Fix `in` is removed from binding when PreserveEndOfLine is true. [#340](https://github.com/fsprojects/fantomas/issues/340)
Fix unnecessary conversion from 'YieldOrReturn' to 'YieldOrReturnFrom' by update of FCS. [#339](https://github.com/fsprojects/fantomas/issues/339)
Fix Lazy<'T> is incorrectly rewritten. [#335](https://github.com/fsprojects/fantomas/issues/335)
Fix Fluent API with comments breaks code. [#331](https://github.com/fsprojects/fantomas/issues/331)
Update to .NET Core 2.1 [#350](https://github.com/fsprojects/fantomas/issues/350)
Removed unused open statements. [#352](https://github.com/fsprojects/fantomas/pull/352)
Added regression test for Implicit module is added to resulting code. [#355](https://github.com/fsprojects/fantomas/pull/355)
Fix wrong comment placement. [#289](https://github.com/fsprojects/fantomas/issues/289)