fantomas 8.0.2
Prefix ReservedSee the version list below for details.
dotnet tool install --global fantomas --version 8.0.2
dotnet new tool-manifest
dotnet tool install --local fantomas --version 8.0.2
#tool dotnet:?package=fantomas&version=8.0.2
nuke :add-package fantomas --version 8.0.2
Fantomas

An opinionated F# source code formatter.
dotnet tool install fantomas
Documentation is available at https://fsprojects.github.io/fantomas/docs/index.html
If you point a coding agent at Fantomas, give it llms.txt for an index of the documentation, or llms-full.txt for all of it in one file.
Contributing Guidelines
See the Contribution Guidelines and our contributors documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.0-alpha-002 | 337 | 10/21/2026 |
| 9.0.0-alpha-001 | 350 | 10/15/2026 |
| 8.1.1 | 2,535 | 11/3/2026 |
| 8.1.0 | 15,156 | 10/21/2026 |
| 8.0.10 | 29,754 | 10/14/2026 |
| 8.0.9 | 145 | 10/14/2026 |
| 8.0.8 | 5,654 | 10/9/2026 |
| 8.0.7 | 6,353 | 10/5/2026 |
| 8.0.6 | 3,735 | 10/1/2026 |
| 8.0.5 | 24,772 | 9/25/2026 |
| 8.0.4 | 2,317 | 9/23/2026 |
| 8.0.3 | 647 | 9/23/2026 |
| 8.0.2 | 4,209 | 9/22/2026 |
| 8.0.1 | 1,950 | 9/21/2026 |
| 8.0.0 | 47,608 | 9/15/2026 |
| 8.0.0-beta-003 | 1,037 | 9/12/2026 |
| 8.0.0-beta-002 | 375 | 9/8/2026 |
| 8.0.0-beta-001 | 1,720 | 9/1/2026 |
| 8.0.0-alpha-026 | 511 | 8/29/2026 |
| 8.0.0-alpha-025 | 249 | 8/28/2026 |
### Fixed
- Code comment inside match-expression leads to additional blank line. A comment that ends the multi-line body of a `match` clause, and then any blank lines the author kept after it, came out with one blank line more than the source had. The same happened before `else`, `finally`, `end` and the next field of a record, whenever the indented body before them ended in a comment. Since `8.0.0` the unindent that closes such a body leaves the comment's newline at the very end of what was written, and the separator the enclosing construct writes next then opened a second line. Those separators now skip their newline when the comment already wrote one, as the closing brace of a record has done since `8.0.0`. Blank lines the author kept, and the ones Fantomas puts between multi-line members and bindings, are unchanged. [#3484](https://github.com/fsprojects/fantomas/issues/3484)