How to deal with C++ header file #include errors in VS Code on Mac?

Solution 1:

On the includePath property add ** to the end of your directories path:

...
"includePath": [
    "${workspaceFolder}/src/**",
    "${workspaceFolder}/**",
    "/usr/local/Cellar/wxmac/3.0.5.1/include/wx-3.0/**"
 ],

You can look form more details about c_cpp_properties.json on the documentation