"terminal.integrated.shellArgs.windows": ["-NoExit", "/c", "chcp 65001"], "terminal.integrated.fontFamily": "Lucida Console", // code-runner插件运行在终端上 "code-runner.runInTerminal": true, // code-runner插件点击运行自动保存文件 "code-runner.saveFileBeforeRun": true, // c++ 配置 "...
(可以看到,还有一个安装扩展后自带的task:“C/C++: cl.exe 生成活动文件”,它和我们自己写的任务目标类似,所以你也可以使用它,它会在你的tasks.json追加这个任务,你可以事后去查看两个任务的区别) 点击它:C/C++ Executable: build current active file,就会看到终端已经运行并输出build结果了(TERMINAL视口会自动出...