Zig language support for VS Code; Zig and ZLS are managed by zvm
README.md

vscode-zig #

VSCode Extension CI

Zig support for Visual Studio Code.

This fork of ziglang/vscode-zig delegates Zig and ZLS management to zvm: the extension downloads and installs nothing itself. It reads the installed versions from zvm ls, and installs a version through zvm install <version> --zls --skip-use when a workspace asks for one that is missing.

Syntax Highlighting, Code Completion

Features #

  • pick the Zig version zvm manages for a workspace (.zigversion, build.zig.zon, zig.version)
  • syntax highlighting
  • basic compiler linting
  • automatic formatting
  • Run/Debug zig program
  • Run/Debug tests
  • optional ZLS language server features
    • inlay hints that are clickable: Ctrl+click (Cmd on macOS) a type hint to open its definition
    • completions
    • goto definition/declaration
    • document symbols
    • ... and many more