如题,怎么修改 vscode 中创建配置时 launch.json 中的内容?即我想创建自己的配置内容作为下次内容生成模板,而不是每次都自定义修改。
1条回答 默认 最新
- 浪客 2021-07-30 20:12关注
launch.json
{ "name": "G++ Debug", "type": "cppdbg", "request": "launch", "preLaunchTask": "g++dbbuild", "program": "${fileDirname}/${fileBasenameNoExtension}.exe", "args": [], "stopAtEntry": false, "cwd": "${fileDirname}", "environment": [], "externalConsole": true, "MIMode": "gdb", "miDebuggerPath": "gdb.exe", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ] }
task.json
{ "label": "g++dbbuild", "type": "shell", "presentation": { "echo": true, "reveal": "always", "focus": false, "panel": "shared" }, "command": g++.exe", "args": [ "${file}", "-g", "-o", "${fileDirname}/${fileBasenameNoExtension}.exe", "-Wall" ], "options": { "cwd": "${fileDirname}" }, "problemMatcher": [ "$gcc" ], "group": { "kind": "build", "isDefault": true } }
解决 无用评论 打赏 举报
悬赏问题
- ¥15 关于stm32hal库驱动ft6336触摸屏遇到的问题
- ¥15 需要手写数字信号处理Dsp三个简单题 不用太复杂
- ¥15 数字信号处理考试111
- ¥100 关于#audobe audition#的问题,如何解决?
- ¥15 allegro17.2生成bom表是空白的
- ¥15 请问一下怎么打通CAN通讯
- ¥20 如何在 rocky9.4 部署 CDH6.3.2?
- ¥35 navicat将excel中的数据导入mysql出错
- ¥15 rt-thread线程切换的问题
- ¥15 高通uboot 打印ubi init err 22