vscode 编辑器配置c/c++
launch.json 文件配置 { "version": "0.2.0", "configurations": [ { "name": "gcc.exe build and debug active file", "type": "cppdbg", "request": "launch", // "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", "program": "${workspaceFolder}\\build\\${fileBasenameNoExtension}.exe", // 配置生成EXE文件路径,将EXE文件保存到单独的build文件夹 "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "gdb", "miDebuggerPath": "D:\\ProgramFile\\mingw64\\bin\\gdb.exe", // mingw64 安装位置 "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "