fantomas 8.0.2
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 |
|---|---|---|
| 8.0.2 | 0 | 9/22/2026 |
| 8.0.1 | 526 | 9/21/2026 |
| 8.0.0 | 10,684 | 9/15/2026 |
| 8.0.0-beta-003 | 950 | 9/12/2026 |
| 8.0.0-beta-002 | 304 | 9/8/2026 |
| 8.0.0-beta-001 | 787 | 9/1/2026 |
| 8.0.0-alpha-026 | 336 | 8/29/2026 |
| 8.0.0-alpha-025 | 221 | 8/28/2026 |
| 8.0.0-alpha-024 | 120 | 8/28/2026 |
| 8.0.0-alpha-023 | 123 | 8/28/2026 |
| 8.0.0-alpha-022 | 344 | 8/27/2026 |
| 8.0.0-alpha-021 | 110 | 8/27/2026 |
| 8.0.0-alpha-020 | 125 | 8/27/2026 |
| 8.0.0-alpha-019 | 455 | 8/26/2026 |
| 8.0.0-alpha-018 | 115 | 8/26/2026 |
| 8.0.0-alpha-017 | 2,821 | 8/25/2026 |
| 8.0.0-alpha-016 | 485 | 8/25/2026 |
| 8.0.0-alpha-015 | 254 | 8/24/2026 |
| 8.0.0-alpha-014 | 170 | 8/20/2026 |
| 7.0.6 | 22,940 | 8/19/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)