Skip to content
| Marketplace
Sign in
Visual Studio>Tools>F# Formatting
F# Formatting

F# Formatting

Asti

|
4,916 installs
| (2) | Free
F# source code formatting using Fantomas.
Download

Formatting For F#

This extension serves as the default code formatter for F# source files (.fs, .fsi, .fsx).

Formatting is generated by the wonderful Fantomas project.

Features

  • Format Document
  • Format Selection
  • Format On Save
  • Supports editorconfig
  • Patching in formatting changes
  • Fast, in-process formatting
  • Fully asynchronous, does not increase project load times
  • Loaded when required
  • Respects key-bindings

Options

This extension supports editor config. If no settings can be found for a file, the user profile's formatting options are used. These can be configured from F# Tools > Formatting

image

Usage

Any custom key-bindings for Format Document/Selection are respected. The default key-bindings are ctrl-k + ctrl-d for document formatting and ctrl-k + ctrl-f for formatting a selection.

See an issue?

If you see an issue with the Visual Studio integration or with configuration, please file it here.

License

F# Formatting is available under the MIT license.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft