Skip to content

Instantly share code, notes, and snippets.

@shivajreddy
Last active December 4, 2023 20:46
Show Gist options
  • Save shivajreddy/c8f9902a8970d1d869d6b86c09261396 to your computer and use it in GitHub Desktop.
Save shivajreddy/c8f9902a8970d1d869d6b86c09261396 to your computer and use it in GitHub Desktop.
vscode-task-cargo run + build
{
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "build",
"problemMatcher": [
"$rustc"
],
"group": "build",
"label": "rust: cargo build",
"presentation": {
"echo": false,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": true
}
},
{
"type": "cargo",
"command": "run",
"problemMatcher": [
"$rustc"
],
"label": "rust: cargo run",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": false,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false
}
},
{
"label": "rust: cargo build and run",
"dependsOrder": "sequence",
"dependsOn": [
"rust: cargo build",
"rust: cargo run"
],
"group": {
"kind": "build",
"isDefault": true,
},
"presentation": {
"echo": false,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": false,
"clear": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment