秒设置,具体步骤:

第一步、打开vscode,在扩展中,下载安装Code Runner插件。

第二步、快捷ctrl+, 健  ,找到Code-Runner: Executor Map。

第三步、在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",

},

第五步、重新打开,方可完美设置成功。

相关阅读

评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。