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 | 82 | 10/21/2026 |
| 9.0.0-alpha-001 | 318 | 10/15/2026 |
| 8.1.0 | 551 | 10/21/2026 |
| 8.0.10 | 10,825 | 10/14/2026 |
| 8.0.9 | 117 | 10/14/2026 |
| 8.0.8 | 4,690 | 10/9/2026 |
| 8.0.7 | 5,481 | 10/5/2026 |
| 8.0.6 | 3,573 | 10/1/2026 |
| 8.0.5 | 16,178 | 9/25/2026 |
| 8.0.4 | 2,161 | 9/23/2026 |
| 8.0.3 | 634 | 9/23/2026 |
| 8.0.2 | 4,177 | 9/22/2026 |
| 8.0.1 | 1,909 | 9/21/2026 |
| 8.0.0 | 40,014 | 9/15/2026 |
| 8.0.0-beta-003 | 1,025 | 9/12/2026 |
| 8.0.0-beta-002 | 355 | 9/8/2026 |
| 8.0.0-beta-001 | 1,367 | 9/1/2026 |
| 8.0.0-alpha-026 | 505 | 8/29/2026 |
| 8.0.0-alpha-025 | 245 | 8/28/2026 |
| 8.0.0-alpha-024 | 142 | 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)