Last active
January 15, 2019 23:23
-
-
Save hazelement/81d81aae8c844e1aff74c5d832163ef4 to your computer and use it in GitHub Desktop.
VSCode setting for C/C++ Project
This file contains hidden or 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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "debug", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceRoot}/${fileBasenameNoExtension}", | |
"args": [], | |
"stopAtEntry": false, | |
"cwd": "${workspaceFolder}", | |
"environment": [], | |
"externalConsole": false, | |
"linux": { | |
"MIMode": "gdb" | |
}, | |
"osx": { | |
"MIMode": "lldb" | |
}, | |
"windows": { | |
"MIMode": "gdb" | |
}, | |
"preLaunchTask": "build & debug file" | |
}, | |
{ | |
"name": "run", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceRoot}/${fileBasenameNoExtension}", | |
"args": [], | |
"stopAtEntry": false, | |
"cwd": "${workspaceFolder}", | |
"environment": [], | |
"externalConsole": false, | |
"linux": { | |
"MIMode": "gdb" | |
}, | |
"osx": { | |
"MIMode": "lldb" | |
}, | |
"windows": { | |
"MIMode": "gdb" | |
}, | |
"preLaunchTask": "build & run file" | |
} | |
] | |
} |
This file contains hidden or 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": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "build & debug file", | |
"type": "shell", | |
"command": "g++", | |
"args": [ | |
"-g", | |
"-o", | |
"${fileBasenameNoExtension}", | |
"${file}" | |
], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"presentation": { | |
"echo": true, | |
"reveal": "never", | |
"focus": false, | |
}, | |
}, | |
{ | |
"label": "build & run file", | |
"type": "shell", | |
"command": "g++", | |
"args": [ | |
"-o", | |
"${fileBasenameNoExtension}", | |
"${file}" | |
], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment