launch.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
{ "version": "0.2.0", "configurations": [ { "name": "C/C++", "type": "cppdbg", "request": "launch", "program": "${fileDirname}/${fileBasenameNoExtension}.exe", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "gdb", "miDebuggerPath": "gdb.exe", "preLaunchTask": "compile", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ], }, ] } |
setting.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
{ "C_Cpp.errorSquiggles": "Disabled", "editor.formatOnType": false, "files.associations": { "cmath": "cpp", "complex": "cpp", "cstdlib": "cpp", "exception": "cpp", "ios": "cpp", "istream": "cpp", "memory": "cpp", "ostream": "cpp", "sstream": "cpp", "streambuf": "cpp", "tuple": "cpp", "utility": "cpp", "vector": "cpp", "xiosbase": "cpp", "xstring": "cpp", "deque": "cpp", "system_error": "cpp", "xtree": "cpp", "queue": "cpp", "xutility": "cpp", "xlocale": "cpp" }, } |
task.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
{ "version": "2.0.0", "tasks": [ { "type": "shell", "label": "compile", "command": "g++", "args": [ "-g", "${file}", "-o", "${fileDirname}\\${fileBasenameNoExtension}.exe" ], "problemMatcher": [ "$gcc" ], "group": { "kind": "build", "isDefault": true } } ] } |
叨叨几句... NOTHING