Option 1: Install F# with Xamarin Studio

logo Xamarin Studio is a free IDE for general purpose development, with freemium add-ins for mobile development.

You can create new projects and cross-compile projects built in Visual Studio and other environments. See the Mac, Linux and Cross-Platform Dev Guide to go further. For 64-bit support, see below.


Option 2: Install Visual Studio Code

logo Visual Studio Code is a free, open source, cross platform source code editor supporting a lot of languages. F# is supported by the Ionide project and is a nice integration.

  1. Install Visual Studio Code for Mac
  2. Add Mono /bin folder to your PATH: export PATH=$PATH:/Library/Frameworks/Mono.framework/Versions/Current/bin/. For more info see: Mono installed on Mac, but not recognized in terminal
  3. Go back to VS Code, press Ctrl+P and enter the following to install the Ionide package.

     ext install Ionide-fsharp
    


Option 3: Install F# alone

To use the F# command-line compiler and tools on Mac OSX:

See the Mac, Linux and Cross-Platform Dev Guide to go further. For 64-bit support, see below.


Option 4: Install F# via Homebrew (64-bit)

F# is installed as part of the Mono homebrew formula:

brew install mono

You can configure Xamarin Studio to use this 64-bit installation: Preferences > .NET Runtimes > Add > /usr/local


Option 5: Install F# (64-bit) from source

To use the F# command-line compiler and tools on Mac OSX in 64-bit mode: