Skip to content

[Question] Unable to fix include path errors #18

Description

@JakeHadley

I'm having an issue having intellisense find header files in the same folder as the source code.

My project is setup like this:

projectDir
---.vscode
---subDir
------src
---------main.cpp
---------header.h

I know it works because it compiles, but it's a problem with intellisense not picking it up.
I have a c_cpp_properties.json file:

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**",            
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "c11",
            "cppStandard": "c++14",
            "intelliSenseMode": "clang-x64"
        }
    ],
    "version": 4
}

What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions