Fantomas 4.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Fantomas --version 4.3.0
                    
NuGet\Install-Package Fantomas -Version 4.3.0
                    
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="4.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fantomas" Version="4.3.0" />
                    
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 4.3.0
                    
#r "nuget: Fantomas, 4.3.0"
                    
#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.
#addin nuget:?package=Fantomas&version=4.3.0
                    
Install Fantomas as a Cake Addin
#tool nuget:?package=Fantomas&version=4.3.0
                    
Install Fantomas 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 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
7.0.1 20,698 2/21/2025
7.0.0 29,058 1/10/2025
7.0.0-beta-001 230 12/30/2024
7.0.0-alpha-004 943 12/12/2024
7.0.0-alpha-003 545 11/29/2024
7.0.0-alpha-002 277 11/2/2024
7.0.0-alpha-001 133 9/16/2024
6.3.16 39,344 10/29/2024
6.3.15 25,936 9/14/2024
6.3.14 298 9/14/2024
6.3.13 1,335 9/10/2024
6.3.12 10,321 9/5/2024
6.3.11 23,156 8/16/2024
6.3.10 100,549 7/12/2024
6.3.9 43,930 6/9/2024
6.3.8 1,382 6/6/2024
6.3.7 2,349 6/1/2024
6.3.6 358 6/1/2024
6.3.5 1,051 5/30/2024
6.3.4 35,864 4/16/2024
6.3.3 8,680 4/12/2024
6.3.2 544 4/12/2024
6.3.1 13,169 3/30/2024
6.3.0 14,996 3/15/2024
6.3.0-beta-001 1,157 3/7/2024
6.3.0-alpha-008 843 3/1/2024
6.3.0-alpha-007 2,048 1/27/2024
6.3.0-alpha-006 841 1/9/2024
6.3.0-alpha-005 1,221 12/22/2023
6.3.0-alpha-004 1,923 12/6/2023
6.3.0-alpha-003 1,480 11/15/2023
6.3.0-alpha-002 934 11/7/2023
6.3.0-alpha-001 780 11/3/2023
6.2.3 144,534 11/2/2023
6.2.2 32,363 10/18/2023
6.2.1 10,730 9/18/2023
6.2.0 24,720 8/29/2023
6.1.3 1,494 8/25/2023
6.1.2 15,392 7/23/2023
6.1.1 78,740 6/29/2023
6.1.0 7,559 6/28/2023
6.1.0-alpha-006 1,118 6/20/2023
6.1.0-alpha-005 1,042 6/20/2023
6.1.0-alpha-004 855 6/19/2023
6.1.0-alpha-003 1,131 6/2/2023
6.1.0-alpha-002 996 5/2/2023
6.1.0-alpha-001 1,003 5/2/2023
6.0.8 2,098 6/20/2023
6.0.7 1,300 6/20/2023
6.0.6 1,490 6/19/2023
6.0.5 5,318 6/6/2023
6.0.4 1,347 6/2/2023
6.0.3 13,020 5/14/2023
6.0.2 4,261 5/5/2023
6.0.1 81,640 4/19/2023
6.0.0 58,701 4/13/2023
6.0.0-beta-001 1,518 4/5/2023
6.0.0-alpha-010 7,821 4/3/2023
6.0.0-alpha-009 838 3/31/2023
6.0.0-alpha-008 2,094 3/27/2023
6.0.0-alpha-007 1,371 3/27/2023
6.0.0-alpha-006 1,508 3/17/2023
6.0.0-alpha-005 2,391 2/24/2023
6.0.0-alpha-004 9,406 2/22/2023
6.0.0-alpha-003 2,978 2/4/2023
6.0.0-alpha-002 917 2/1/2023
6.0.0-alpha-001 1,057 1/24/2023
5.2.4 6,234 3/17/2023
5.2.3 5,644 3/6/2023
5.2.2 13,751 2/21/2023
5.2.1 75,621 2/4/2023
5.2.0 6,897 1/19/2023
5.2.0-alpha-012 1,191 1/14/2023
5.2.0-alpha-011 1,409 1/12/2023
5.2.0-alpha-010 1,113 12/30/2022
5.2.0-alpha-009 1,046 12/29/2022
5.2.0-alpha-008 1,300 12/28/2022
5.2.0-alpha-007 1,039 12/26/2022
5.2.0-alpha-006 1,044 12/22/2022
5.2.0-alpha-005 1,170 12/16/2022
5.2.0-alpha-004 1,282 12/8/2022
5.2.0-alpha-003 1,054 12/6/2022
5.2.0-alpha-002 1,008 12/4/2022
5.2.0-alpha-001 950 11/30/2022
5.1.5 25,764 12/22/2022
5.1.4 27,680 11/30/2022
5.1.3 7,977 11/14/2022
5.1.2 1,570 11/10/2022
5.1.1 4,096 11/7/2022
5.1.0 2,790 11/4/2022
5.1.0-beta-002 1,018 10/29/2022
5.1.0-beta-001 1,388 10/19/2022
5.1.0-alpha-007 1,066 10/14/2022
5.1.0-alpha-006 1,024 10/14/2022
5.1.0-alpha-005 1,168 10/7/2022
5.1.0-alpha-004 1,180 10/7/2022
5.1.0-alpha-003 1,189 10/2/2022
5.1.0-alpha-002 1,074 9/29/2022
5.1.0-alpha-001 1,114 9/18/2022
5.0.6 25,569 10/13/2022
5.0.5 10,447 10/7/2022
5.0.4 2,215 10/4/2022
5.0.3 10,957 9/29/2022
5.0.2 8,483 9/22/2022
5.0.1 6,513 9/18/2022
5.0.0 21,295 9/16/2022
5.0.0-beta-010 28,840 9/10/2022
5.0.0-beta-009 10,344 9/2/2022
5.0.0-beta-008 3,054 8/30/2022
5.0.0-beta-007 1,647 8/19/2022
5.0.0-beta-006 2,964 8/12/2022
5.0.0-beta-005 5,103 8/3/2022
5.0.0-beta-004 2,346 7/27/2022
5.0.0-beta-003 3,740 7/26/2022
5.0.0-beta-002 1,924 7/19/2022
5.0.0-beta-001 2,917 7/15/2022
5.0.0-alpha-011 1,642 7/8/2022
5.0.0-alpha-010 2,222 6/27/2022
5.0.0-alpha-009 93,640 6/21/2022
5.0.0-alpha-008 3,092 5/28/2022
5.0.0-alpha-007 1,870 5/16/2022
5.0.0-alpha-006 1,890 5/13/2022
5.0.0-alpha-005 1,371 5/7/2022
5.0.0-alpha-004 1,463 5/7/2022
5.0.0-alpha-003 1,923 5/6/2022
5.0.0-alpha-002 771 4/4/2022
5.0.0-alpha-001 726 3/19/2022
4.7.9 11,397 5/2/2022
4.7.8 10,581 4/25/2022
4.7.7 1,199 4/20/2022
4.7.6 1,467 4/4/2022
4.7.5 1,323 3/27/2022
4.7.4 1,286 3/25/2022
4.7.3 4,856 3/12/2022
4.7.2 1,211 3/11/2022
4.7.1 1,212 3/8/2022
4.7.0 1,329 3/4/2022
4.6.6 1,239 3/4/2022
4.6.5 1,994 2/18/2022
4.6.4 1,761 2/11/2022
4.6.3 1,807 2/8/2022
4.6.2 1,791 2/6/2022
4.6.1 1,787 2/1/2022
4.6.0 2,292 1/14/2022
4.6.0-beta-001 846 1/8/2022
4.6.0-alpha-011 830 12/29/2021
4.6.0-alpha-010 849 12/4/2021
4.6.0-alpha-009 3,484 11/24/2021
4.6.0-alpha-008 1,262 11/19/2021
4.6.0-alpha-007 886 11/7/2021
4.6.0-alpha-006 244 11/3/2021
4.6.0-alpha-005 265 10/27/2021
4.6.0-alpha-004 243 10/20/2021
4.6.0-alpha-003 225 10/5/2021
4.6.0-alpha-002 238 9/7/2021
4.6.0-alpha-001 210 8/11/2021
4.5.12 1,657 1/8/2022
4.5.11 2,443 12/29/2021
4.5.10 2,686 12/4/2021
4.5.9 7,584 11/24/2021
4.5.8 1,795 11/19/2021
4.5.7 1,626 11/7/2021
4.5.6 1,418 11/3/2021
4.5.5 1,573 10/27/2021
4.5.4 1,482 10/5/2021
4.5.3 2,985 9/7/2021
4.5.2 1,631 8/11/2021
4.5.1 3,493 7/24/2021
4.5.0 3,398 7/7/2021
4.5.0-beta-005 949 7/6/2021
4.5.0-beta-004 926 7/5/2021
4.5.0-beta-003 962 7/5/2021
4.5.0-beta-002 959 6/27/2021
4.5.0-beta-001 1,449 6/5/2021
4.5.0-alpha-020 903 5/26/2021
4.5.0-alpha-019 911 5/22/2021
4.5.0-alpha-018 951 5/21/2021
4.5.0-alpha-017 907 5/15/2021
4.5.0-alpha-016 880 5/9/2021
4.5.0-alpha-015 971 5/8/2021
4.5.0-alpha-014 1,020 4/30/2021
4.5.0-alpha-013 937 4/27/2021
4.5.0-alpha-012 931 4/23/2021
4.5.0-alpha-011 1,022 4/20/2021
4.5.0-alpha-010 938 4/14/2021
4.5.0-alpha-009 947 4/11/2021
4.5.0-alpha-008 947 4/8/2021
4.5.0-alpha-007 968 4/8/2021
4.5.0-alpha-006 922 4/5/2021
4.5.0-alpha-005 952 4/3/2021
4.5.0-alpha-004 967 4/2/2021
4.5.0-alpha-003 1,010 3/28/2021
4.5.0-alpha-002 977 3/22/2021
4.5.0-alpha-001 2,607 2/26/2021
4.4.0 13,400 2/25/2021
4.4.0-beta-008 1,025 2/19/2021
4.4.0-beta-007 1,010 2/12/2021
4.4.0-beta-006 1,003 2/12/2021
4.4.0-beta-005 1,062 2/9/2021
4.4.0-beta-004 1,047 2/5/2021
4.4.0-beta-003 1,499 1/30/2021
4.4.0-beta-002 1,031 1/23/2021
4.4.0-beta-001 1,437 1/22/2021
4.4.0-alpha-008 1,204 1/15/2021
4.4.0-alpha-007 1,699 12/26/2020
4.4.0-alpha-006 1,116 12/25/2020
4.4.0-alpha-005 1,194 12/23/2020
4.4.0-alpha-004 1,228 12/22/2020
4.4.0-alpha-003 1,232 12/18/2020
4.4.0-alpha-002 1,203 12/17/2020
4.4.0-alpha-001 1,106 12/17/2020
4.3.0 5,869 12/17/2020
4.3.0-beta-002 1,160 12/11/2020
4.3.0-beta-001 1,118 12/7/2020
4.3.0-alpha-007 1,132 11/21/2020
4.3.0-alpha-006 1,124 11/20/2020
4.3.0-alpha-005 1,074 11/16/2020
4.3.0-alpha-004 1,570 11/12/2020
4.3.0-alpha-003 1,156 11/10/2020
4.3.0-alpha-002 1,134 10/26/2020
4.3.0-alpha-001 1,167 10/23/2020
4.2.0 5,028 9/25/2020
4.2.0-alpha-004 1,314 9/23/2020
4.2.0-alpha-003 1,114 9/21/2020
4.2.0-alpha-002 1,184 9/19/2020
4.2.0-alpha-001 1,231 9/18/2020
4.1.1 1,815 9/17/2020
4.1.0 2,029 9/10/2020
4.1.0-beta-004 1,263 9/5/2020
4.1.0-beta-003 1,203 9/4/2020
4.1.0-beta-002 1,551 9/4/2020
4.1.0-beta-001 1,174 9/3/2020
4.1.0-alpha-001 1,154 9/1/2020
4.0.0 4,217 8/27/2020
4.0.0-beta-003 1,224 8/21/2020
4.0.0-beta-002 1,255 8/7/2020
4.0.0-beta-001 1,572 7/20/2020
4.0.0-alpha-014 1,381 7/14/2020
4.0.0-alpha-013 1,190 7/11/2020
4.0.0-alpha-012 2,035 7/6/2020
4.0.0-alpha-011 1,038 6/25/2020
4.0.0-alpha-010 1,412 6/18/2020
4.0.0-alpha-009 1,092 6/12/2020
4.0.0-alpha-008 1,214 6/2/2020
4.0.0-alpha-007 1,088 6/1/2020
4.0.0-alpha-006 2,357 5/23/2020
4.0.0-alpha-005 2,189 5/16/2020
4.0.0-alpha-004 1,503 5/4/2020
4.0.0-alpha-003 1,155 5/3/2020
4.0.0-alpha-002 1,196 4/26/2020
4.0.0-alpha-001 1,092 4/20/2020
3.3.0 12,969 2/28/2020
3.3.0-beta-002 2,030 2/21/2020
3.3.0-beta-001 1,205 2/18/2020
3.2.0 21,238 2/3/2020
3.2.0-beta-002 1,773 1/7/2020
3.2.0-beta-001 1,334 12/26/2019
3.1.0 10,721 11/27/2019
3.0.0 5,071 10/11/2019
3.0.0-beta-006 1,917 10/2/2019
3.0.0-beta-005 1,100 9/27/2019
3.0.0-beta-004 1,682 9/18/2019
3.0.0-beta-003 1,238 9/13/2019
3.0.0-beta-002 16,755 7/20/2019
3.0.0-beta-001 5,964 7/12/2019
2.9.2 25,830 2/2/2019
2.9.1 5,026 11/20/2018
2.9.0 11,457 10/17/2018
2.8.1 2,859 9/12/2018
2.8.0 6,157 7/7/2018
2.7.1 5,048 5/2/2018
2.7.0 2,699 5/2/2018
2.6.1 45,848 4/22/2017
2.5.0 3,078 2/19/2017
2.4.0 3,199 10/24/2016
2.3.0 2,851 7/9/2016
2.2.0 2,590 4/24/2016
2.1.0 2,483 4/1/2016
2.0.2 9,227 11/15/2015
1.11.0 3,021 9/12/2015
1.10.0 2,382 8/29/2015
1.9.0 2,833 8/10/2015
1.8.0-beta 2,003 7/19/2015
1.7.0 2,491 6/10/2015
1.6.0 3,374 10/25/2014
1.5.0 2,844 9/18/2014
1.4.0 3,199 7/1/2014
1.3.0 2,693 5/17/2014
1.2.0 2,721 4/21/2014
1.1.0 2,622 3/29/2014
1.0.7 2,582 3/12/2014
1.0.5.1 2,676 1/15/2014
1.0.5 2,402 1/7/2014
1.0.4 2,482 11/16/2013
1.0.3 2,497 10/6/2013
1.0.2 2,441 8/16/2013
1.0.1 2,629 7/22/2013
1.0.0 5,729 7/16/2013
0.9.9.2 2,835 7/2/2013
0.9.9.1 2,604 6/22/2013
0.9.8 2,599 6/14/2013
0.9.7 2,545 6/7/2013
0.9.6 2,538 5/31/2013
0.9.5 2,617 5/23/2013
0.9.4 2,470 5/19/2013
0.9.3 2,495 5/9/2013
0.9.2 2,521 5/3/2013
0.9.1 2,731 4/26/2013
0.9.0 2,518 4/19/2013
0.8.9 2,578 4/12/2013
0.8.8 2,542 4/11/2013
0.8.7 2,462 4/9/2013
0.8.6 2,480 4/4/2013
0.8.5 2,577 4/2/2013
0.8.4 2,493 4/1/2013
0.8.3 2,562 4/1/2013
0.8.2 2,445 4/1/2013
0.8.1 2,628 3/31/2013
0.8.0 2,569 3/31/2013

Feature Clarify constructors. [#1217](https://github.com/fsprojects/fantomas/issues/1217)
Feature MultiLineLambdaClosingNewline. [#1221](https://github.com/fsprojects/fantomas/issues/1221)
Feature Disable Elmish syntax. [#1198](https://github.com/fsprojects/fantomas/issues/1198)
Support user-provided end-of-line characters. [#1231](https://github.com/fsprojects/fantomas/issues/1231)
Add option to make expressions multiline based on number of subexpressions rather than character length. [#1143](https://github.com/fsprojects/fantomas/issues/1143)
Update to FCS 38. [#1240](https://github.com/fsprojects/fantomas/pull/1240)
Fix Comment after let binding breaks downstream output. [#1284](https://github.com/fsprojects/fantomas/issues/1284)
Fix Comments are removed before and after empty array literals. [#1281](https://github.com/fsprojects/fantomas/issues/1281)
Fix Use a safe filename when formatting from CodeFormatter. [#1279](https://github.com/fsprojects/fantomas/issues/1279)
Fix Incorrect movement of a comma. [#966](https://github.com/fsprojects/fantomas/issues/966)
Fix Bracket indentation is incorrect. [#1271](https://github.com/fsprojects/fantomas/issues/1271)
Fix tuple with match formats to invalid code. [#1269](https://github.com/fsprojects/fantomas/issues/1269)
Fix Incorrect movement of a comma. [#966](https://github.com/fsprojects/fantomas/issues/966)
Fix Not adding a space even when all SpaceBefore* settings are enabled. [#964](https://github.com/fsprojects/fantomas/issues/964)
Fix Multiline if condition can have incorrect indentation error. [#1267](https://github.com/fsprojects/fantomas/issues/1267)
Fix multiline do bang gives a warning. [#1265](https://github.com/fsprojects/fantomas/issues/1265)
Fix regressions. [#1264](https://github.com/fsprojects/fantomas/pull/1264)
Fix multiline yield bang in list should be further indented. [#1254](https://github.com/fsprojects/fantomas/issues/1254)
Fix Or pipe in destructured record should not be splitted. [#1252](https://github.com/fsprojects/fantomas/issues/1252)
Fix Swap order of private and inline. [#1250](https://github.com/fsprojects/fantomas/issues/1250)
Fix Comment is lost in enum. [#1247](https://github.com/fsprojects/fantomas/issues/1247)
Fix Nested if/else/then in short mode. [#1243](https://github.com/fsprojects/fantomas/issues/1243)
Fix Something doesn't add up in fix for 303. [#1093](https://github.com/fsprojects/fantomas/issues/1093)
Fix Fantomas format is "unstable/oscillates" after upcast operator: adds/removes empty line. [#1227](https://github.com/fsprojects/fantomas/issues/1227)
Fix Misplaces `=` in function signature so it's invalid F# code. [#1218](https://github.com/fsprojects/fantomas/issues/1218)
Fix Additional newline is added between if/elif and for loop. [#1211](https://github.com/fsprojects/fantomas/issues/1211)
Fix Let binding in hash directive disappears. [#1205](https://github.com/fsprojects/fantomas/issues/1205)
Fix Downcast operator doesn't get a new line. [#1203](https://github.com/fsprojects/fantomas/issues/1203)
Fix Implicit unit else results in extra lines with each reformat. [#1187](https://github.com/fsprojects/fantomas/issues/1187)
Fix Incorrect formatting of function parameter application with lambdas. [#1201](https://github.com/fsprojects/fantomas/issues/1201)
Fix Lambda functions in fluent API calls should indent further. [#970](https://github.com/fsprojects/fantomas/issues/970)
Fix Hard to read code when using Thoth.Json. [#685](https://github.com/fsprojects/fantomas/issues/685)
Fix --check should ignore the line endings. [#1196](https://github.com/fsprojects/fantomas/issues/1196)
Fix Format entire return type on the line. [#1181](https://github.com/fsprojects/fantomas/issues/1181)
Fix Only add one `in` keyword in LetOrUse. [#1176](https://github.com/fsprojects/fantomas/issues/1176)
Fix Multiline SynPat.Record in pattern match is formatted as a mixture of single/multiline styles. [#1173](https://github.com/fsprojects/fantomas/issues/1173)
Fix Inconsistent indentation of multiline records with internal keyword when fsharp_multiline_block_brackets_on_same_column is on/off. [#1171](https://github.com/fsprojects/fantomas/issues/1171)
Fix Lambda argument splits in awkward way. [#1164](https://github.com/fsprojects/fantomas/issues/1164)
Fix Multiline expression should be on next line. [#1158](https://github.com/fsprojects/fantomas/issues/1158)
Fix Missing in keyword makes code invalid. [#1114](https://github.com/fsprojects/fantomas/issues/1114)
Fix Invalid code after format. [#1032](https://github.com/fsprojects/fantomas/issues/1032)
Fix Space before ^ SRTP type is removed in function call. [#984](https://github.com/fsprojects/fantomas/issues/984)
Fix Shouldn't remove space after colon. [#908](https://github.com/fsprojects/fantomas/issues/908)
Fix Crash when formatting with config file. [#824](https://github.com/fsprojects/fantomas/issues/824)
Fix Formatting typeof generic static constraint fails to compile. [#803](https://github.com/fsprojects/fantomas/issues/803)
Fix Indenting of record definition when internal. [#658](https://github.com/fsprojects/fantomas/issues/658)