Skip to content

VoltScript on Windows

On Windows, you can use VoltScript natively. If Foundry is installed on Windows, it is recommended that you develop also on Windows.

Prerequisites

The only pre-requisite for using VoltScript is:

  • Installing Visual Studio Code.

Info

On Windows, you do not have to develop in a dev container, but can. The most obvious use case for this will be if Foundry is running on Linux. If you wish to follow this approach, the steps are the same as for VoltScript on Mac.

Installing on Windows

You will need to download the zip file for VoltScript from Flexnet.

Extract the zip

  • Unzip VoltScriptEA2.zip to your desired location, for example C:\Program Files\VoltScript.

Set PATH environment variable

Setting the PATH environment variable allows Visual Studio Code to automatically identify the location of the VoltScript runtime and allows you to run VoltScript code easily anywhere on the command line.

  1. In Search, search for "environment" and select "Edit the system environment variables".
  2. Click on "Environment variables..."
  3. In "System variables", click on "Path"
  4. Click "New" and enter the directory into which you unzipped the VoltScript files, for example C:\Program Files\VoltScript.

Installing the Visual Studio Code extensions

  1. Launch Visual Studio Code.
  2. Click on Extensions, the fifth icon in the left-hand gutter.
  3. In the title bar of the Extensions editor, click the ellipsis (...) and select "Install from VSIX...".
  4. Navigate to the directory into which you unzipped the VoltScript files, for example C:\Program Files\VoltScript.
  5. Install vscode-voltscript-1.1.0.vsix.
  6. Repeat steps 3 - 5 for vscode-voltscript-archipelago-1.1.0.vsix.
  7. Reload Visual Studio Code.

You are now ready to start coding with VoltScript in Visual Studio Code.