Script

Overview

The Script tab allows linking Grid Studio with an external script editor.

While scripts can be edited directly inside Grid Studio, many users prefer working in a dedicated IDE that provides features such as syntax highlighting, code navigation, and debugging tools.

Grid Studio supports integration with Visual Studio Code for this purpose.


Visual Studio Code Integration

To enable editing scripts in Visual Studio Code, the path to the VS Code executable must be configured in the Script preferences.

Setting the VS Code Path

In the Script Settings section, specify the path to the Visual Studio Code executable on your system.

A typical installation path may look like this:

C:/Users/[user_name]/AppData/Local/Programs/Microsoft VS Code/Code.exe

The exact location may vary depending on the system configuration.


Editing Scripts in VS Code

Once the path is configured, script objects inside Grid Studio will display a VS Code icon in the top-right corner of the script editor.

Clicking this icon will open the script in Visual Studio Code.

When a script is opened this way:

  1. Grid Studio creates a temporary file that represents the script.

  2. The file is opened in Visual Studio Code.

  3. Changes can be made directly inside the IDE.

  4. When the file is saved, the changes are automatically updated inside the corresponding script object in the project.

This allows users to take advantage of the full feature set of Visual Studio Code while still keeping the script linked to the Grid Studio project.

Last updated