I've been using VS Code, and I was wondering how to build a task.json
file that will have these commands. cargo build
, cargo run [ARGS]
cargo run --release -- [ARGS]
I've tried making one with the documentation on task.json
. I kept getting No such subcommand
errors.
Sample:
{
"version": "0.1.0",
// The command is tsc. Assumes that tsc has been installed using npm install -g typescript
"command": "cargo",
// The command is a shell script
"isBuildCommand": true,
// Show the output window only if unrecognized errors occur.
"showOutput": "silent",
"tasks": [{
"taskName": "run test",
"version": "0.1.0",
"command": "run -- --exclude-dir=node_modules C:/Users/Aaron/Documents/Github/",
"isShellCommand": true,
"showOutput": "always"
},
{
"taskName": "run",
"version": "0.1.0",
"args": [ "--"
, "--exclude-dir=node_modules"
, "C:/Users/Aaron/Documents/Github/"
]
"isShellCommand": true,
"showOutput": "always"
}]
}