Skip to content

Instantly share code, notes, and snippets.

@Longhanks
Last active March 24, 2023 07:44
Show Gist options
  • Save Longhanks/4bb8a8f1f92da32a37e9f6e4db1dbd9f to your computer and use it in GitHub Desktop.
Save Longhanks/4bb8a8f1f92da32a37e9f6e4db1dbd9f to your computer and use it in GitHub Desktop.
vscode-cpp-tasks-json
// -*- jsonc -*-
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "cmake configure",
"type": "cmake",
"command": "configure",
"problemMatcher": [],
"detail": "Runs cmake and configures the project."
},
{
"label": "clean",
"type": "cmake",
"command": "clean",
"problemMatcher": [],
"detail": "Clean the output directory via cmake."
},
{
"label": "build current target",
"type": "cmake",
"group": {
"kind": "build",
"isDefault": true
},
"command": "build",
"targets": [
"${command:cmake.buildTargetName}"
],
"presentation": {
"reveal": "always",
"panel": "dedicated",
"close": false,
"showReuseMessage": false,
"clear": true
},
"problemMatcher": "$msCompile"
},
{
"label": "debug",
"command": "${command:workbench.action.debug.start}",
},
{
"label": "run",
"command": "${command:workbench.action.debug.run}",
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment