Cmd + click not working to jump to function definition in Cursor

I just got cursor but for some reason cmd+click is not jumping to function definition. This has been a really annoying issue that’s prevented me from using cursor over vscode. Can you help to solve this?

1 Like

Hey, sorry you are struggling with this! Which language are you coding with in your project?

The CTRL+Click functionality is powered by the language-specific extension that works for your project, so the reasons for it not working would be different for each language.

I’m using python, should I download some extension manually? What could be the issue?

Try installing this:

Same issue with JS/TS. Does not work at all. I’ve tried disabling all extensions and enabling again. I have the same extensions installed on VS Code and no problem there.

2 Likes

In case anyone else hits this issue, this is how I fixed it:

  1. Open the cmd pallete (cmp + shift + p)
  2. Type in “Install Extensions” and open the Extensions panel
  3. Search for the word “Python” and find the extension with 4M+ downloads
  4. Click “Uninstall” → “Restart Extensions” → “Install”
  5. Profit
1 Like

Using Kotlin, i have the same plugin in VScode which works, but not in Cursor.

I encountered the same issue while working with TypeScript. However, after installing these two extensions (JavaScript and TypeScript Nightly and TypeScript Hero)and restarting Cursor, the problem was resolved.
I hope this solution works for you as well!

I ran into this issue as I was coding in JavaScript and I finally figured out how to solve the problem. I followed the guide here: How I can make `ctrl + click` to go to definition in visual studio code editor for mac OS? - Stack Overflow

In summary go to press F1, type settings json , then click Open Settings (JSON) , and then do the following:

Add “editor.multiCursorModifier”: “alt”, to your file

{
    "editor.multiCursorModifier": "alt",
}

Basically the IDE gets freed up so that cmd + click now works again. Magic!

I am not sure why my post is being ignored. The answer is correct and fixed the problem for me.

in settings.json add

{
    "editor.multiCursorModifier": "alt",
}