vs code 配置

添加頭文件路徑

  • 新建一個文件 叫作 c_cpp_properties.jsonc++

  • 編寫文件,以下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
     }
相關文章
相關標籤/搜索