c++配置vscode

tasks.json
{
“tasks”: [
{
“type”: “shell”,
“label”: “g++.exe build active file”,
“command”: “D:\VS\mingw\810\mingw64\bin\g++.exe”, // 根据自己的地址修改
“args”: [
“-fdiagnostics-color=always”,
“-g”,
f i l e " , " − o " , " {file}", "-o", " file","o","{fileDirname}\KaTeX parse error: Expected '}', got '#' at position 170: …mingw64\\bin" #̲ 根据自己的地址修改 …{workspaceFolder}”*/
},
“problemMatcher”: [
KaTeX parse error: Expected 'EOF', got '}' at position 168: …成的任务。" }̲, { …{file}”,
“-o”,
“${fileDirname}\KaTeX parse error: Expected '}', got 'EOF' at end of input: … "cwd": "{fileDirname}”
},
“problemMatcher”: [
“$gcc”
],
“group”: “build”,
“detail”: “调试器生成的任务。”
}
],
“version”: “2.0.0”
}

launch.json
{
“version”: “0.2.0”,
“configurations”: [
{
“name”: “g++.exe - 生成和调试文件”,
“type”: “cppdbg”,
“request”: “launch”,
“program”: “${fileDirname}\ f i l e B a s e n a m e N o E x t e n s i o n . e x e " , " a r g s " : [ " / C " , " {fileBasenameNoExtension}.exe", "args": [ "/C", " fileBasenameNoExtension.exe","args":["/C","{fileDirname}\KaTeX parse error: Expected 'EOF', got '&' at position 50: … "&̲", …{workspaceFolder}”,
“environment”: [],
“externalConsole”: true,
“MIMode”: “gdb”,
“miDebuggerPath”: “D:\VS\mingw\810\mingw64\bin\gdb.exe”, # 和上面是同一个文件地址可以找到
“setupCommands”: [
{
“description”: “为 gdb 启用整齐打印”,
“text”: “-enable-pretty-printing”,
“ignoreFailures”: true
},
{
“description”: “将反汇编风格设置为 Intel”,
“text”: “-gdb-set disassembly-flavor intel”,
“ignoreFailures”: true
}
]
},
{
“name”: “C/C++: g++.exe 生成和调试活动文件”,
“type”: “cppdbg”,
“request”: “launch”,
“program”: “${fileDirname}\ f i l e B a s e n a m e N o E x t e n s i o n . e x e " , " a r g s " : [ ] , " s t o p A t E n t r y " : f a l s e , " c w d " : " {fileBasenameNoExtension}.exe", "args": [], "stopAtEntry": false, "cwd": " fileBasenameNoExtension.exe","args":[],"stopAtEntry":false,"cwd":"{workspaceFolder}”,
“environment”: [],
“externalConsole”: true,
“MIMode”: “gdb”,
“miDebuggerPath”: “D:\VS\mingw\810\mingw64\bin\gdb.exe”,
“setupCommands”: [
{
“description”: “为 gdb 启用整齐打印”,
“text”: “-enable-pretty-printing”,
“ignoreFailures”: true
},
{
“description”: “将反汇编风格设置为 Intel”,
“text”: “-gdb-set disassembly-flavor intel”,
“ignoreFailures”: true
}
],
“preLaunchTask”: “C/C++: g++.exe 生成活动文件”
}
]
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值