Download the recommended .NET SDK for your operating system and install it.
Download the latest stable build of Visual Studio Code for your operating system and install it.
Open Visual Studio Code, navigate to the "Extensions" tab and install "Ionide-fsharp"
Download the desired version of Visual Studio
When executing the installer select ".NET desktop development" under workloads and make sure "F# desktop language support" is ticked as well on the right side.
Select any other workloads or individual components you are interested in and start the installation.
Download Visual Studio for Mac Visual Studio
Run the Installer. F# is installed by default.