Skip to content

Instantly share code, notes, and snippets.

@nothke
Created October 20, 2023 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nothke/366d082a899833d7a185e6fb7cd3170c to your computer and use it in GitHub Desktop.
Save nothke/366d082a899833d7a185e6fb7cd3170c to your computer and use it in GitHub Desktop.
zig tasks for VSCode
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "zig build-exe",
"type": "process",
"command": "zig",
"args": [
"build",
"run"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "silent",
"showReuseMessage": false,
"clear": true
}
},
{
"label": "zig run",
"type": "process",
"command": "zig",
"args": [
"run",
"${file}"
],
"group": "build",
"presentation": {
"showReuseMessage": false,
"clear": true
}
},
{
"label": "zig test",
"type": "process",
"command": "zig",
"args": [
"test",
"${file}"
],
"group": {
"kind": "test",
"isDefault": true
},
"presentation":{
"showReuseMessage": false,
"clear": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment