Can't fix include errors for C++ development

DEveloping Arduino sketches (C++) with Cursor.
Installed the Bounce2 library via Arduino IDE.
Confirmed that it is in place at

… Documents/Arduino/libraries/**

Added the following to c_cpp_properties.json:

{
    "configurations": [
        {
            "name": "Mac",
            "includePath": [
                "${default}",
                "${workspaceFolder}/**",
                "${env:HOME}/Library/Arduino15/packages/**",
                "${env:HOME}/Library/Arduino15/",
                "${env:HOME}/Documents/Arduino/libraries/**"
            ],
            "defines": [],
            "macFrameworkPath": [
                "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
            ],
            "compilerPath": "/usr/bin/clang",
            "cStandard": "c11",
            "cppStandard": "c++11",
            "intelliSenseMode": "macos-clang-arm64"
        }
    ],
    "version": 4
}

Still, the following

#include <Bounce2.h>

shows squiggle lines. Cant get rid of them and Agent is no help … what is happening here?

Hi @eHanseJoerg, the Anysphere C/C++ extension relies on Clangd for the language server, which needs to be configured via a compile_commands.json (the build tool, such as CMake, can generate this file). Please see Intellisense disabled in new C++ extension and the Clangd Getting Started Guide for more on configuring Clangd.