This is a very basic template that should allow you build/run/debug zig code from vscode.
- Start a project with this template.
- Rename your executable in
launch.json
line 8 and delete the comment. - Run
zig init-exe
orzig init-lib
from the terminal depending on what you want to make. - Delete or edit this readme to match your project.
- Have
zig
available from yourPATH
. - Optionally have
zls
available from yourPATH
(the Zig language server).
- How to use
zls
with vscode: https://github.com/zigtools/zls#vscode - Nice article on how to setup Zig with vscode for gamedev: https://dev.to/fabioarnold/setup-zig-for-gamedev-2bmf