Last active
December 8, 2022 12:37
-
-
Save CompetitiveLin/f77ec4b83a4c11044c135e084eb47bfe to your computer and use it in GitHub Desktop.
.vscode FOR C++
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
{ | |
// 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": "(Windows) Launch", | |
"type": "cppvsdbg", | |
"request": "launch", | |
"program": "cmd", | |
"preLaunchTask": "C/C++: g++.exe build active file", | |
"args": [ | |
"/C", | |
"${fileDirname}\\${fileBasenameNoExtension}.exe", | |
"&", | |
"echo.", | |
"&", | |
"pause" | |
], | |
"stopAtEntry": false, | |
"cwd": "${workspaceFolder}", | |
"environment": [], | |
"externalConsole":true | |
}, | |
{ | |
"name": "(gdb) Launch", | |
"preLaunchTask": "C/C++: g++.exe build active file", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceFolder}/${fileBasenameNoExtension}.exe", | |
"args": [], | |
"stopAtEntry": false, | |
"cwd": "${workspaceFolder}", | |
"environment": [], | |
"externalConsole": true, | |
"MIMode": "gdb", | |
"miDebuggerPath": "C:\\Programs\\Dev-Cpp\\MinGW64\\bin\\gdb.exe", // YOUR GDB PATH | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
} | |
] | |
} | |
] | |
} |
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
{ | |
"tasks": [ | |
{ | |
"type": "cppbuild", | |
"label": "C/C++: g++.exe build active file", | |
"command": "C:\\Programs\\Dev-Cpp\\MinGW64\\bin\\g++.exe", // YOUR G++ PATH | |
"args": [ | |
"-fdiagnostics-color=always", | |
"-g", | |
"-std=c++11", | |
"${file}", | |
"-o", | |
"${fileDirname}\\${fileBasenameNoExtension}.exe" | |
], | |
"options": { | |
"cwd": "${fileDirname}" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"detail": "Task generated by Debugger." | |
} | |
], | |
"version": "2.0.0" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment