Skip to content

Instantly share code, notes, and snippets.

@ppeeou
Created March 2, 2019 16:36
Show Gist options
  • Save ppeeou/e01959eadefac1889f9b41dda934bbdc to your computer and use it in GitHub Desktop.
Save ppeeou/e01959eadefac1889f9b41dda934bbdc to your computer and use it in GitHub Desktop.
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build_c",
"type": "shell",
"command": "gcc",
"args": [
"-o",
"${fileBasenameNoExtension}.exe",
"${file}"
],
"group": {
"kind": "build",
"isDefault": true
},
},
{
"label": "exec_c",
"type": "shell",
"command": "./${fileBasenameNoExtension}.exe",
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "build_c++",
"type": "shell",
"command": "g++",
"args": [
"-o",
"${fileBasenameNoExtension}.exe",
"${file}"
],
"group": {
"kind": "build",
"isDefault": true
},
},
{
"label": "py_exec",
"type": "shell",
"command": "python",
"args": [
"${file}"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "pylint",
"type": "shell",
"command": "pylint",
"args": [
"${file}"
]
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment