The recommended way to use Fantomas in Visual Studio Code is by using the Ionide plugin. Fantomas is integrated in FSAutoComplete which is the language server used by Ionide.
Make sure Ionide is set to the default formatter inside
starting version 4.6
Fantomas version detection will try and find a compatible version in the following order:
- The version of Fantomas used by your local project. This is the fantomas version displayed when you run
dotnet tool listinside the project folder.
- Your global Fantomas version. If fantomas was installed with
dotnet tool install fantomas -g. You can see your global installations with
dotnet tool list -g.
- Executable named
fantomasfound in your PATH.