点击CodeRunner的小齿轮,点击configure extension settings
visual studio code(vscode) 配置在terminal进行运行代码并且支持c++11特性

2.点击映射

点击executor map中的Edit in settings.json
visual studio code(vscode) 配置在terminal进行运行代码并且支持c++11特性

3.粘贴代码

粘贴如下代码,按下command + s 进行保存

{
    "code-runner.runInTerminal": true,
    "C_Cpp.default.cppStandard": "c++11",
    "code-runner.executorMap": {
        "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -std=c++11 && $dir$fileNameWithoutExt"
    },
    "files.associations": {
        "typeinfo": "cpp"
    },
    "window.zoomLevel": 1,
}

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2021-10-18
  • 2021-12-27
  • 2022-12-23
  • 2021-04-28
猜你喜欢
  • 2021-07-10
  • 2021-10-04
  • 2022-12-23
  • 2021-08-01
  • 2021-10-18
  • 2021-05-21
相关资源
相似解决方案