C++ extension doesn't work

when I install c++ extension which is released by anysphere.
it auto install clangd extension.

but when Clangd extension installed,it is show this popup as the picutre above.
and the IntelliSense is not work.

the extension does not work, and I get so many red-underline-error.
the ‘go to definition’ feature can’t work.

So I uninstall clangd extension, the red-error disappear, but I can’t use ‘go to definition’ feature, then there is not any IntelliSense.

so the question is:

  • how to make IntelliSense work fine?
  • how to make red-underline-error disappear?

Same! “Go to definition” is not working, very annoying!

Hi! the Anysphere C++ extension depends on ClangD for LSP support.

In the above screenshot, you can click “Never show this warning”, and ClangD will continue to function. (We’ll hide this warning in a future update).
To configure ClangD, you’ll need to provide it with a compile_commands.json, which can be autogenerated by the build system.

You can also try switching to the VSCode C++ extension, which will read the configuration from the c_cpp_proprties.json. Attaching a screenshot:

ok, thx, I’ll try it later, following your advice.