tasks.json holds commands VS Code can run for a project, such as a build.
Comments and trailing commas are allowed.
Structure
| Member | Value |
|---|---|
version | The format’s version, "2.0.0". |
tasks | An array of tasks. |
inputs | An optional array of values the tasks ask for when they run. |
| Task attribute | Value |
|---|---|
label | The task’s name. |
type | shell, process, or a type that an extension provides. |
command | What to run, with args for its arguments. |
group | Which group it belongs to: build, test or none. An object form has kind and isDefault. |
problemMatcher | How to read errors out of the output. |
dependsOn | Tasks to run first. |
{
"version": "2.0.0",
"tasks": [
{ "label": "build", "type": "shell", "command": "make", "group": "build" }
]
}