pierangelomiceli/multi-zig-project
Zig + VS Code Multi-Project Debug Setup
This repository is a starter template for working with multiple Zig projects in a single workspace using VS Code, with:
tasks.jsonlaunch.json.env, no bash tricksmulti-zig-project/
├── project1/
│ ├── src/
│ └── build.zig
├── project2/
│ ├── src/
│ └── build.zig
└── .vscode/
├── tasks.json
└── launch.json
When you press ▶️ Run and Debug in VS Code or press F5 key:
project1 or project2) to debugproject1 or project2) to buildzig build command runs automatically in the right folderzig-out/bin/All this is handled using VS Code's built-in inputs API, so:
main.zig files.F5 to Debug Zig doesn't yet have a built-in package manager or multi-project workflow like cargo in Rust.
This setup gives you:
Fully working with breakpoint on vscode.
This was built out of necessity — because we were tired of repeating configurations on launch.json and tasks.json files during my learning experiments.
Hope it helps others looking for a clean Zig + VS Code workflow!
MIT – Free to use, modify, fork, or scream at.