Skip to content

Instantly share code, notes, and snippets.

@arsperger
Forked from mattmc3/tasks.json
Created August 15, 2020 14:27
Show Gist options
  • Save arsperger/fbcdae8d6080cc655131bcb2861d864e to your computer and use it in GitHub Desktop.
Save arsperger/fbcdae8d6080cc655131bcb2861d864e to your computer and use it in GitHub Desktop.
VSCode tasks for running a Makefile
// Makefile
// ${workspaceRoot} the path of the folder opened in VS Code
// ${file} the current opened file
// ${fileBasename} the current opened file's basename
// ${fileDirname} the current opened file's dirname
// ${fileExtname} the current opened file's extension
// ${cwd} the task runner's current working directory on startup
{
"version": "0.1.0",
"command": "bash",
"isShellCommand": true,
"showOutput": "always",
"options": {
"cwd": "${workspaceRoot}"
},
"args": [
"-c"
],
"tasks": [
{
"taskName": "build",
"suppressTaskName": true,
"isBuildCommand": true,
"args": ["make build"]
},
{
"taskName": "test",
"suppressTaskName": true,
"isTestCommand": true,
"args": ["make test"]
},
{
"taskName": "deploy",
"suppressTaskName": true,
"args": ["make deploy"]
},
{
"taskName": "help",
"suppressTaskName": true,
"args": ["make help"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment