vs code 配置

添加头文件路径

  • 新建一个文件 叫做 c_cpp_properties.json

  • 编写文件,如下

    {
      "configurations": [
          {
              "name": "Linux",
              "includePath": [
                  "${workspaceFolder}",
                  "/opt/ros/kinetic/include"
              ],
              "defines": [],
              "compilerPath": "/usr/bin/gcc",
              "cStandard": "c11",
              "cppStandard": "c++17",
              "intelliSenseMode": "gcc-x64"
          }
      ],
      "version": 4
    

}

posted @ 2019-05-14 20:05  wjundong  阅读(328)  评论(0编辑  收藏  举报