Formatting F# Code
summary
Fantomas reformats F# by turning source into FSharp.Compiler.Service AST plus tokenizer trivia, producing writer events and a new string; it supports merging up to eight combinations of ASTs for different #defines and preserves comments via token-to-trivia mapping. The project ships as a NuGet DLL and CLI, integrates into Rider through the ReSharper backend, provides an online issue repro tool, and can generate code by emitting formatted ASTs. Version 4 adds configurable style options (example: multi-line block brackets on same column) and commercial sponsorship funds one day/week of maintenance.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 8:07Formatting in action
- 10:30Multiple defines
- 12:39Settings
- 21:30Fantomas in Rider
- 29:43How I got involved in Fantomas and OSS
- 51:50Closing thoughts
- 53:21Questions and Answers








