Cmd+click, "Go to Function Definition" functionality?

I solved my problem by:

  • Uninstalling vscode
  • Uninstalling cursor
  • Removing the Code and Cursor folders from the %APPDATA%\Roaming folder (I’m on Windows 11)
  • Shut down the computer
  • Power on the computer
  • Install cursor fresh

Hope this helps someone

1 Like

thank you. it’s working for me

Same issue with JS/TS. Have been dealing with it for a month or so. If i restart cursor it cmd+click works for a few min and then stops working

Same issue with JS/TS. Does not work at all. I’ve tried disabling all extensions and enabling again.

Perfect

Issue is also affecting me for Go code. None of the above works / applies.

Hey, that should work simply by installing the Go extension, I assume you already have this installed?

I had exactly the same issue, removed Pylance extension, then installed it again, and now it works with cmd + click🙏🏽

Works, Thank You.

I met the same issue here on my Macbook. I defined a python function in a file. Then I cannot go to the function definition by cmd+click in other python files. But Option + click works. It’s quit weird. I don’t find a way to fix it.

Hey, can you try this suggestion to see if it helps? This is usually a configuration issue, not an issue with Cursor itself!

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!

1 Like

me too,

Yes it is working.
We just need 3 extensions for python with their extension id’s
Python Debugger ( ms-python.debugpy )
Python ( ms-python.python )
Python ( anysphere.cursorpyright )

Yep this did it:

“editor.multiCursorModifier”: “alt”

thanks, I restarted the plugin, and fixed the bug

Uninstall python and jupyter extensions and then reinstall

This worked for me today! However, the Pylance extension is now bundled with the Python extension. I just uninstalled, restarted extensions, re-installed, and viola.

I ran into this on macOS in a TypeScript project. Equivalent solution worked for me. Deleted ~/Library/Application Support/Cursor, reinstalled Cursor and imported VS Code including extensions. This fixed the issue, at least for now. Since the cause is unknown, could return.

I’ve just started experiencing this issue, on MacOS, in a C++ project. “Go to definition” and “Go to declaration” are missing from the context menu, F12 does not work, Ctrl-Click or Cmd+Click does not work. My whole context menu is 100% dedicated to AI stuff. If I select “Go to definition” in the main “Go” menu, nothing happens. I don’t have anything python related installed, and I do have “editor.multiCursorModifier”: “alt” in my settings.

1 Like