Created
May 11, 2017 15:50
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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