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

An opinionated F# source code formatter.
dotnet tool install fantomas
Documentation is available at https://fsprojects.github.io/fantomas/docs/index.html
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-001 | 141 | 10/15/2026 |
| 8.0.10 | 2,329 | 10/14/2026 |
| 8.0.9 | 78 | 10/14/2026 |
| 8.0.8 | 4,139 | 10/9/2026 |
| 8.0.7 | 5,128 | 10/5/2026 |
| 8.0.6 | 3,502 | 10/1/2026 |
| 8.0.5 | 14,224 | 9/25/2026 |
| 8.0.4 | 2,123 | 9/23/2026 |
| 8.0.3 | 631 | 9/23/2026 |
| 8.0.2 | 4,173 | 9/22/2026 |
| 8.0.1 | 1,894 | 9/21/2026 |
| 8.0.0 | 37,539 | 9/15/2026 |
| 8.0.0-beta-003 | 1,021 | 9/12/2026 |
| 8.0.0-beta-002 | 351 | 9/8/2026 |
| 8.0.0-beta-001 | 1,303 | 9/1/2026 |
| 8.0.0-alpha-026 | 503 | 8/29/2026 |
| 8.0.0-alpha-025 | 240 | 8/28/2026 |
| 8.0.0-alpha-024 | 140 | 8/28/2026 |
| 8.0.0-alpha-023 | 145 | 8/28/2026 |
| 8.0.0-alpha-008 | 188 | 3/25/2026 |
### Added
- Support for `#elif` preprocessor directive. [#3268](https://github.com/fsprojects/fantomas/issues/3268)
### Fixed
- Multiline `val` body in signature files was not indented correctly. [#3269](https://github.com/fsprojects/fantomas/pull/3269)
- `///` doc comment without associated declaration (e.g. at end of file) was duplicated when formatting. [#2499](https://github.com/fsprojects/fantomas/issues/2499)
- NamedIndexedPropertySet with two SynLongIdent removed space. [#3273](https://github.com/fsprojects/fantomas/issues/3273)
- `%%` (double-percent) infix operator moved to new line, producing invalid F#. [#2107](https://github.com/fsprojects/fantomas/issues/2107)
- Indentation warning when formatting `match` with long anonymous record discriminant. [#1903](https://github.com/fsprojects/fantomas/issues/1903)
- Index-without-dot with variable key followed by unit arguments added spurious spaces, e.g. `dict[key] () ()` became `dict [ key ] () ()`. [#2519](https://github.com/fsprojects/fantomas/issues/2519)
- Open-ended expressions (lambda, if-then-else, match, ...) in non-last positions of infix, tuple, list/array, and record expressions now stay multiline to preserve semantics. [#3279](https://github.com/fsprojects/fantomas/issues/3279)
- Lambda in tuple in list on single line changes code meaning. [#3278](https://github.com/fsprojects/fantomas/issues/3278)
- Custom operator applied to lambda collapses to single line changing semantics. [#3274](https://github.com/fsprojects/fantomas/issues/3274)