The Zig Language extension for VS Code automatically installs the Zig compiler. However, I already have a separate portable Zig compiler on a USB drive and a portable VS Code version on the same drive. I’d like to use the coding features of the VS Code extension, such as syntax highlighting, but without it installing another compiler in each system I plug my USB drive in. How can I achieve that?
Hello @anissbenthami
Welcome to ziggit
In vscode settings.json
you can set the path for zig and zls (zig language server):
{
"zig.path": "zig",
"zig.zls.path": "zls"
}
If the paths are empty vscode installs zig and zls.
If the content is zig
it uses zig from the PATH.
Otherwise vscode extension expects the full path of zig.
1 Like