Skip to main content

Visual Studio Code

NOT WORKING

Scripting is not available yet

Extensions vscode

Intellisense

Per script

Open your script folder and create the settings.json in the .vscode folder.

ProjectGWN/mods/scripts/MyScript/.vscode/settings.json
{
"luau-lsp.types.definitionFiles": {
"@extra_types": "PATH_TO_THE_GAME/ProjectGWN/mods/docs/extra_types.d.lua",
"@api": "PATH_TO_THE_GAME/ProjectGWN/mods/docs/api.d.lua",
"!!gwn": "PATH_TO_THE_GAME/ProjectGWN/mods/docs/gwn.d.lua"
}
}
note

Replace PATH_TO_THE_GAME with the actual path to the game. Example: D:/Games/ProjectGWN-v090


General

Place the luau-lsp.types.definitionFiles in the User settings.json
F1Preferences: Open User Settings (JSON)

That way you will have the autocomplete in any lua file

tip

I recommend to do a new profile in VS Code so you don't get unwanted GWN autocomplete in other lua files