Skip to main content
GLuaLS knows the Garry’s Mod API (every function, hook, class and enum, with types and realms) from annotations generated from the Garry’s Mod wiki. The VS Code extension downloads them on first launch, checks for updates in the background, and shares one copy between all your projects. To update them now, run GLuaLS: Update GLuaLS Annotations from the Command Palette (Ctrl+Shift+P).

VS Code settings

Keep the defaults unless you are testing changes to the annotations.

Use your own copy

To use a local folder of annotations for one project, set gmod.annotationsPath in .gluarc.json. The path can be absolute or relative to the project folder.
.gluarc.json
To load no Garry’s Mod annotations for a project, set gmod.autoLoadAnnotations to false.