C/C++ from anysphere is not working

I installed new c/c++(Anysphere) plugin (with clangd) in cursor v0.51.2 today,and it’s nothing working.
Cannot go to definition , cannot switch to header file (command ‘clangd.switchheadersource’ not found) etc …
So,is there something wrong ? Or is there anyway to fixed it ?
Btw,i’m a ue developer,i use it with ue project .

cc @ravirahman

the same.

Same.

same question

Hi all, the Anysphere C++ extension depends on ClangD for LSP support, which has a different configuration syntax. (It requires a compile_commands.json, which CMake can generate). If this is not configured, then Jump-to-Definition will not work.

2 Likes

Hi ravirahman,
Thanks for the suggestion to use the VSCode C++ extension. When I try to install this in cursor, it does not show up as a supported extension. It does show up in VSCode, so I know I’ve got the right search term.

Is the the VSCode C++ extension from MS supported in cursor?

Hi, the vscode c++ extension is not supported.

I appreciate all that Cursor team is doing, but this is one of those “if it aint broke dont fix it” situations

the ms-vscode extension works great and always did. I’m using it for Zephyr RTOS development, and all these comments about configuring my build system to generate a different compile_commands.json or to install the clangd language server…

I don’t want to do any of that stuff, (and I’m sure I’m not the only one!) Most of all already have to deal with complex build systems - SPECIALLY IN C/C++ land

Would be great if this didnt add to the headache