Last active
December 4, 2023 20:46
-
-
Save shivajreddy/c8f9902a8970d1d869d6b86c09261396 to your computer and use it in GitHub Desktop.
vscode-task-cargo run + build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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