Skip to content

Instantly share code, notes, and snippets.

@JeroenDM
Created May 11, 2017 15:50
Show Gist options
  • Save JeroenDM/688200b5da8adbb5e46972382e0f9c50 to your computer and use it in GitHub Desktop.
Save JeroenDM/688200b5da8adbb5e46972382e0f9c50 to your computer and use it in GitHub Desktop.
The task settings I use for cpp programming in vscode. Build with ctrl+shift+b and run with F8. Based on several tutorials out there when googling vscode c++ tasks.
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"tasks": [
{
"taskName": "build",
"command": "g++",
"isShellCommand": true,
"isBuildCommand": true,
"args": ["working/working.cpp", "-std=c++11", "-W", "-Wall", "-pedantic", "-g"],
"showOutput": "always"
},
{
"taskName": "run",
"command": "./a.out",
"isShellCommand": true,
"isBuildCommand": false,
"args": [],
"showOutput": "always"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment