VSCode C/C++ for Mac .在编译过程中,如何保证弹出系统终端
1)在tasks.json中 添加 “externalConsole”: true
2)在launch.json 中添加 ,给以权限
{
"label": "Open Terminal.app",
"type": "shell",
"command": "osascript -e 'tell application \"Terminal\"\ndo script \"echo now VS Code is able to open Terminal.app\"\nend tell'",
"problemMatcher": [],
"group": "none",
}
3)command+shift+P。 搜索task点击Run Task 在弹出框里点同意