fantomas 8.0.0-alpha-008
See 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 |
|---|---|---|
| 8.0.0-alpha-012 | 211 | 4/16/2026 |
| 8.0.0-alpha-011 | 139 | 4/15/2026 |
| 8.0.0-alpha-010 | 130 | 4/15/2026 |
| 8.0.0-alpha-009 | 247 | 4/3/2026 |
| 8.0.0-alpha-008 | 144 | 3/25/2026 |
| 8.0.0-alpha-007 | 152 | 3/10/2026 |
| 8.0.0-alpha-006 | 120 | 3/9/2026 |
| 8.0.0-alpha-005 | 111 | 3/9/2026 |
| 8.0.0-alpha-004 | 109 | 3/7/2026 |
| 8.0.0-alpha-003 | 124 | 3/3/2026 |
| 8.0.0-alpha-002 | 351 | 12/15/2025 |
| 8.0.0-alpha-001 | 153 | 12/12/2025 |
| 7.0.5 | 142,498 | 12/5/2025 |
| 7.0.4 | 1,400 | 12/5/2025 |
| 7.0.3 | 119,926 | 7/4/2025 |
| 7.0.2 | 44,673 | 5/28/2025 |
| 7.0.1 | 61,179 | 2/21/2025 |
| 7.0.0 | 76,258 | 1/10/2025 |
| 7.0.0-beta-001 | 353 | 12/30/2024 |
| 7.0.0-alpha-004 | 1,098 | 12/12/2024 |
### 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)