VSCode 使用code runner

寫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運行

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章