Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 735 Bytes

Configure Build tasks in vscode.md

File metadata and controls

33 lines (27 loc) · 735 Bytes
tags
english, tutorial, vscode

Configure Build tasks in vscode

Menu > Terminal > Configure Tasks...

or create the file .vscode/tasks.json with the following template:

{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  "version": "2.0.0",
  "tasks": [
    {
      "label": "task's name",
      "type": "shell",
      "command": "./build.sh '${file}'",
      
      // Optional
      "problemMatcher": [],
      "group": {
        "kind": "build",
        "isDefault": true
      }
    }
  ]
}

Now you can press Ctrl+Shift+B to run that task and execute the command attribute (./build.sh '${file}').