Skip to main content
Version: Next

Install FScript and VS Code

You will install the command-line interpreter and prepare VS Code to edit and debug .fss files. If you already use VS Code, keep your existing installation.

Install FScript​

Choose one installation route.

Homebrew on macOS​

brew install magnusopera/tap/fscript

.NET tool on supported platforms​

Install the .NET 11 SDK first, then install the global tool:

dotnet tool install --global MagnusOpera.FScript

Check the installation in a new terminal:

fscript version

You should see the installed version. If the command is not found, reopen the terminal and check that the installation's executable directory is on PATH. For the global .NET tool, this is normally $HOME/.dotnet/tools on macOS/Linux or %USERPROFILE%\.dotnet\tools on Windows.

Next and your installed version: this manual describes Next. Package managers normally install the published release; unreleased features may not be available yet. The pure first script below is a starting point shared with Stable. Use the version selector for your installed release's contracts.

Install VS Code and the FScript extension​

  1. Download and install VS Code for your operating system.
  2. Open Extensions in VS Code and search for FScript. Install the MagnusOpera FScript extension. It is also available on Open VSX.
  3. Allow the extension to download a supported language server from FScript GitHub Releases and acquire its .NET runtime on first use. Cached servers work offline; the runtime can also use dotnet from PATH. The CLI installed above is needed separately for local execution and debugging.
  4. Create a folder named fscript-start, then use File → Open Folder to open it. Trust this folder you created so local debugging is enabled.
  5. Use Terminal → New Terminal and confirm that fscript version works there too.

The extension provides syntax highlighting, inferred-type hovers, completion, diagnostics, and debugging. You do not need a fscript.toml file for this quickstart.

Check the editor​

Create and save an empty pricing.fss file. Confirm that VS Code's language mode is FScript. In the next step you will fill it with a function and use hover and diagnostics to check your work.

If language features do not start, run FScript: Show Language Server Output from the Command Palette to inspect the error. The Editor Reference lists settings and commands. Configuring external providers belongs to Advanced: Extension Environments.

Next: Run Your First Script.