寫C++的時候如果發現右鍵沒有run code 選項,可以安裝code runner,可以不Debug直接運行代碼;
配置setting.json文件, 加入下面代碼即可:
"code-runner.runInTerminal": true,
"code-runner.ignoreSelection": true,
"code-runner.fileDirectoryAsCwd": true,
發現右擊出現run code選項,也可用Ctrl + Alt + N
運行