Installation
Install SCS IntelliSense and open your first mod.
Requirements
- Visual Studio Code 1.118 or newer.
- An internet connection the first time you use completion, hover or the attribute checks, to download the schema database. After that, it works offline.
Install the extension
- Open VS Code.
- Open the Extensions view with Control plus Shift plus XCtrl+Shift+X.
- Search for SCS IntelliSense.
- Click Install.
You can also install it from its Marketplace page.
Open any .sii or .sui file and it's colored right away: the extension is
active.
Open your mod as a folder
Use File → Open Folder... and pick your mod's folder, the one that holds
manifest.sii. Opening single files works too, but then the extension only sees
that file. With the whole folder open it can:
- find a unit defined in another file when you Ctrl + click its name;
- suggest units and files from all of your mod;
- update paths when you move a file;
- know which unit a
.suifile is pasted into.
Read How your mod is read to see which folder layouts the extension understands.
Turn on the experimental features
Completion, hover and the formatter are off by default while they're still being tested. They're stable on the game's own files and worth turning on: see Experimental features.
Update
VS Code updates extensions automatically. To update by hand, open the Extensions view, find SCS IntelliSense and click Update when it's shown.