I am struggling to configure VSCode with ROS to have the auto-complete function.
I am used to using VSCode with Qt and OpenCV and everything worked fine.
For example, for OpenCV, I just edited c_cpp_propreties.json like this:
{
"configurations": [
    {
        "name": "Linux",
        "includePath": [
            "${workspaceFolder}/**",
            "/usr/local/include/opencv4/opencv2"
        ],
        "defines": [],
        "compilerPath": "/usr/bin/gcc",
        "cStandard": "gnu11",
        "cppStandard": "gnu++14",
        "intelliSenseMode": "clang-x64"
    }
],
"version": 4
}
The auto-complete for OpenCV works fine then (I have the C++ IntelliSense extension).
But then, as soon as I try to specify the include folder from ROS in the c_cpp_propreties.json, nothing works anymore, not even the OpenCV auto-completion:
{
"configurations": [
    {
        "name": "Linux",
        "includePath": [
            "${workspaceFolder}/**",
            "/usr/local/include/opencv4/opencv2",
            "/opt/ros/melodic/include"
        ],
        "defines": [],
        "compilerPath": "/usr/bin/gcc",
        "cStandard": "gnu11",
        "cppStandard": "gnu++14",
        "intelliSenseMode": "clang-x64"
    }
],
"version": 4
}
It's like ROS is blocking everything. What am I doing wrong? I specify that I click on "Open Folder" in VSCode and browse for the ROS package to load it. I am working on Ubuntu 18.04 LTS.
 
     
     
    

 
    