VS Mac with Fantomas
Fantomas is a code formator for F#, just like the prettier for JavaScript if you have known about it.
You can use Fantomas with your favorite editors by following the official guide. But what about VS Mac? The guide shows nothing.
VS Mac provides an option for using external tools, just setup Fantomas as follow:
(Click to view high resolution)
Notice, you need to fill full path for the Command
due to VS Mac refuses $PATH
. And make sure Save current file
is checked, to avoid VS Mac asking you to reload the file each time you formated.