只需在VS Code中启动C ++,然后使用MinGW,Complier,扩展,调试等设置C ++。 我陷入无法找到解决方案的问题。在完成task.json之后:
"tasks": [
{
"label": "echo",
"type": "shell",
"command": "g++",
"args": [
"-g", "learn.cpp"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
我键入Ctrl + Shift + B使其可以在终端中显示后,它显示:
/usr/bin/bash: g++: command not found
The terminal process terminated with exit code: 127
如果您能帮助我解决这个问题,我将不胜感激!
谢谢你!