C++ formatting doesn't work

Hi everyone,
I haven’t used cursor for a month or so and last time I used on old version of Microsoft’s C/C++ extension for formatting and intellisense.

Now I reinstalled the system and I have C/C++ from Anyshere and Clangd (I intend to use clang compiler).

But the formatting doesn’t work anymore and I don’t have the squiggles that signal something is wrong in the code

I thought that Anyshere’s C/C++ extension replaces the one from Microsoft.
What can I do to fix this?

Thanks!
Theodore

Hi @Theodore01, 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.

Thank you @ravirahman for your reply.
Unfortunately, I tried since yesterday to make my setup work and I failed.
I’m on Linux but I use .cpp Windows files which I compile in a cloud compiler.

However, I need intellisense locally.
I tried to use Clangd to get the header files from Mingw and provide intellisense, but I failed. I’m flooded by errors.

Do you have any suggestion for me?

Thanks!