2025-06-22T16:08:25.png
在setting.json中,将终端设置为输出 ,即将"code-runner.runInTerminal":true设置为"code-runner.runInTerminal":false。

"code-runner.runInTerminal": false,


在setting.json中进行设置以下代码。

"code-runner.showExecutionMessage": false,
 
 "code-runner.executorMap": {
     "javascript": "node",
     "php": "C:\\php\\php.exe",
     "python": "python",
     "perl": "perl",
     "ruby": "C:\\Ruby23-x64\\bin\\ruby.exe",
     "go": "go run",
     "html": "\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\"",
     "java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
     "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
     "cpp": "clear && cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
    },





最后修改:2025 年 06 月 23 日
如果觉得我的文章对你有用,请随意赞赏