文件-首选项-设置,添加如下配置: "code-runner.runInTerminal": true, 转载于:https://www.cnblogs.com/smiler/p/9358366.html