VS code getting intellisense to find JUCE

Hi

I tried to add :

“includePath”: [
“${default}”,
“/Develop/JUCE/modules/**”
],

to my includepath in c_cpp_properties.json .

But when I #include <JuceHeader.h> etc. I get squigly lines and none of the intellisense works.

Is it possible?

Depending upon how you built your project, JuceHeader may not exist (yet). Regardless, IntelliSense should work. Using cmake (on mac below) and c_cpp_properties looking like this, all works for me. You may want to have a look at this

{
    "configurations": [
        {
            "name": "Mac",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [],
            "macFrameworkPath": ["/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks"],
        "compilerPath": "/usr/bin/clang",
        "cStandard": "c11",
        "cppStandard": "c++17",
        "intelliSenseMode": "${default}"
        }
    ],
"version": 4
}
1 Like

Thanks all of a sudden it started working but it’s rather slow don’t know why. Hmm