Posting in case this helps anyone. I had the same issue with C/C++ code after migrating to a new (raspberry pi) dev server. Syntax highlighting was very basic, and all of the context sensitive/Intellisense features were gone. The right click menu did not show ‘go to definition’ and F12 did nothing.
My issue was that I did not have the clangd language server installed. I believe this is needed for the C/C++ extension from Cursor. If you’re having this problem it might be worth checking with:
which clangd
You should see something like /usr/bin/clangd
If you don’t, you can install by following the instructions at Getting started
For Rpi, Debian/Ubuntu:
sudo apt search clangd
As of writing, clangd-19 is the latest.
sudo apt install clangd-19
You will need to point ‘clangd’ to ‘clangd-19’ still.
Added C:\clangd_20.1.0\bin to my user environment variables in Windows.
I reloaded the cursor, and intellisense immediately started working correctly.
And also, the “Go to definition” item appeared and the ctrl + click combination began to work!
In my case, Account is class provided by a third party library.
This is definitely starting to become a nuisance and reduces the productivity gains from using Cursor’s AI features in the first place if I have to manually navigate to files/classes that I want to take a look at.
Hi @tylermilner, could you check that you have the “Anysphere Python” extension installed, and that the interpreter for the workspace is correctly set?
For me, the question happened in a more interesting way. I used the same cursor to ssh two servers, same project. It works on one and not in another.LOL
Hi @ravirahman, I installed the Anysphere Python extension (it wasn’t installed before). It had me uninstall a conflicting extension and restart Cursor, but it didn’t seem to fix the issue.
I do have the correct Python interpreter selected (manually set to the python binary/symlink in my project’s .venv):
Had this same issue - For C/C++ I installed the Anysphere C/C++ Extension, which prompted me to disable some existing extensions (I clicked the allow prompts), and now it works
I have the same problem with C#. It works on Blazor components. Another thing is that on my home computer where the installation has been there for over a month, it works. At work with a new installation, it doesn’t work. Both have the same version.
also having this same issue. in fact, i’ve had it since i’ve switched to cursor (for months now). i always thought to myself “this has to be resolved any day now, it’s not possible they don’t do anything about this for any longer”.
i see here many people have the same problem. this is infuriating, it makes working with cursor such a chore. why isn’t this working?? i’m thinking about moving back to intellij. this really can’t be so hard to fix?!?!?!
I’m also having this issue, to check one thing I opened the same folder with vs code (so should use same settings.json) and go to definition working in that case with same virtual environment
@sina, 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.