First and foremost, please note that in VS Code for macOS, the familiar Ctrl + click from Windows / Linux operating systems has been replaced with ⌘ + click (i.e.: "command + click"). Try that first before proceeding any further as that shortcut should work out of the box without any special modifications.

However, if the above still doesn't work for you then try fixing the problem by editing your settings.json file. To do that, press F1, type settings json, then click Open Settings (JSON), and then do one of the following:

To use ⌘ + click as your "Go to definition" shortcut, ensure the following line exists in your JSON settings:

"editor.multiCursorModifier": "alt",

What this does is it explicitly sets VS Code's "add another cursor" shortcut to option + click (try it out for yourself!), thus freeing up ⌘ + click to be used for the "Go to definition" operation.

Conversely, to use option + click as your "Go to definition" shortcut instead, add:

"editor.multiCursorModifier": "ctrlCmd",

Note: the above line will actually set the "add another cursor" shortcut to ⌘ + click (not Ctrl + ⌘ + click, as implied by the JSON value).

Answer from cactuschibre on Stack Overflow
Top answer
1 of 16
135

First and foremost, please note that in VS Code for macOS, the familiar Ctrl + click from Windows / Linux operating systems has been replaced with ⌘ + click (i.e.: "command + click"). Try that first before proceeding any further as that shortcut should work out of the box without any special modifications.

However, if the above still doesn't work for you then try fixing the problem by editing your settings.json file. To do that, press F1, type settings json, then click Open Settings (JSON), and then do one of the following:

To use ⌘ + click as your "Go to definition" shortcut, ensure the following line exists in your JSON settings:

"editor.multiCursorModifier": "alt",

What this does is it explicitly sets VS Code's "add another cursor" shortcut to option + click (try it out for yourself!), thus freeing up ⌘ + click to be used for the "Go to definition" operation.

Conversely, to use option + click as your "Go to definition" shortcut instead, add:

"editor.multiCursorModifier": "ctrlCmd",

Note: the above line will actually set the "add another cursor" shortcut to ⌘ + click (not Ctrl + ⌘ + click, as implied by the JSON value).

2 of 16
49

Settings > User > multiCursorModifier must be set to alt (default), so the ctrl/cmd will be available to go to definition.

Documentation:

The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier.

Discussions

Cmd+Click on Mac OS Ventura not working on definitions
Does this issue occur when all extensions are disabled?: Yes VS Code Version: ersion: 1.73.0 (Universal) Commit: 8fa188b Date: 2022-11-01T15:38:50.881Z (6 days ago) Electron: 19.0.17 Chromium: 102.... More on github.com
🌐 github.com
5
November 8, 2022
Ctrl click not working
Are you using a external keyboard which was built with Windows in mind? There's no reason ctrl + click would jump to a function definition on a Mac. cmd + click is the default keybinding for that action. If you're using a third party keyboard, it's possible there's some other key modifier happening here. opt + click shouldn't jump to a function definition either. More on reddit.com
🌐 r/vscode
4
1
April 6, 2025
VS Code Go to definition (command + click) not working unity
VSCode Version: 1.42.1 OS Version: Mac OS Catalina 10.15.3 (19D76) Steps to Reproduce: Update Unity to 2019.2.0f6 Update VS code to 1.42.1 and try command + click on a function of another class Doe... More on github.com
🌐 github.com
2
February 25, 2020
Ctrl Click (Cmd Click on mac) on require does not follow JSON
VSCode Version: 1.23.0 / 7c7da59 OS Version: macOS High Sierra 10.13.4 (17E199) Steps to Reproduce: Start from blank project / folder Create a json file foo.json with any valid json content Create ... More on github.com
🌐 github.com
2
May 4, 2018
🌐
Medium
medium.com › @gargm › solved-cmd-click-not-working-in-vs-code-on-macos-a119e67ad755
Solved: Cmd + Click Not Working in VS Code on macOS | by Mgarg | Medium
June 5, 2026 - Update your VS Code settings so that Option + click is used for multi-cursor selection, freeing up Cmd + click for “Go to Definition.”
Author: microsoft
🌐
Super User
superuser.com › questions › 1425068 › how-to-make-ctrlclick-on-visual-studio-code-with-macos
How to make 'ctrl+click' on visual studio code with macOS - Super User
April 13, 2019 - First of all, I have tried to do: keyboard shortcuts -> search "go to definition" --> right click --> change keybinding from F12 to ctrl+x (because I don't know how to set the 'click' mouse command in that visual studio code setting) but doesn't work. Someone who has the same problem should help me, please? It will be helpful for me and for my code :) thank you for anyone who will resolve this trouble. ... For that, there's a site where you will get VScode plugins.
🌐
GitHub
github.com › microsoft › vscode › issues › 91350
VS Code Go to definition (command + click) not working unity · Issue #91350 · microsoft/vscode
February 25, 2020 - VSCode Version: 1.42.1 OS Version: Mac OS Catalina 10.15.3 (19D76) Steps to Reproduce: Update Unity to 2019.2.0f6 Update VS code to 1.42.1 and try command + click on a function of another class Does this issue occur when all extensions a...
Author: microsoft
Find elsewhere
🌐
YouTube
youtube.com › watch
Vscode Terminal right click is not working | Visual Studio Code - YouTube
Hello friends,Here is a quick fix if the right-click on the visual studio code terminal is not working. It can be fixed very easily. You have to add this bel...
Published: November 14, 2022
🌐
GitHub
github.com › Microsoft › vscode › issues › 49250
Ctrl Click (Cmd Click on mac) on require does not follow JSON · Issue #49250 · microsoft/vscode
May 4, 2018 - VSCode Version: 1.23.0 / 7c7da59 · OS Version: macOS High Sierra 10.13.4 (17E199) Steps to Reproduce: Start from blank project / folder · Create a json file foo.json with any valid json content · Create a js file bar.js with the following code · module.exports = {} Create a js file "index.js" with the following code and open it · const foo = require('./foo'); const other = require('./bar'); Try Ctrl Click on foo. It won't work ·
🌐
GitHub
github.com › unplugin › unplugin-vue-components › issues › 710
VScode cannot use command+click to jump to Vue3's custom component in MacOS · Issue #710 · unplugin/unplugin-vue-components
November 4, 2023 - Describe the bug For the same project, I can use ctrl+click to jump to the corresponding .vue file through the custom component name in Windows 10. However, I cannot use command+click to jump in MacOS. I have tried reinstalling VScode an...
Author: unplugin
🌐
Developer Community
developercommunity.visualstudio.com › t › ctrl-click-go-to-definition-stopped-working-in-vs › 1536904
Ctrl + click = go to definition, stopped working in VS ...
September 22, 2021 - Skip to main content · Visual Studio · Guidelines Problems Suggestions Code of Conduct · Downloads · Visual Studio IDE Visual Studio Code Azure DevOps Team Foundation Server Accounts and Subscriptions · Subscriber Access · Microsoft Security Azure Dynamics 365 Microsoft 365 Microsoft ...
🌐
Cursor
forum.cursor.com › support › bug reports
Cmd+click, "Go to Function Definition" functionality? - Bug Reports - Cursor - Community Forum
March 11, 2024 - The F12 “Go to Definition” does not work either! ... Is there any fix for this issue? Seems other users have been experiencing this recently. UPDATE: For anyone else having this issue, it seems to be an issue when using a VPN. Opening up the app without VPN seems to load extensions properly and allows you to cmd+click on files. ... This issue persists. I downloaded 1st August. ... Same for me. Just downloaded too: Version: 0.38.1 VSCode Version: 1.91.1 Commit: 39ded7305e8d625076ebbbf98510c53152232660 Date: 2024-07-25T20:18:41.490Z Electron: 29.4.0 ElectronBuildId: undefined Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin arm64 23.3.0
🌐
GitHub
github.com › microsoft › vscode › issues › 152930
quick fix shortcut ( cmd + . ) keys not work on macOS - m1 device · Issue #152930 · microsoft/vscode
June 23, 2022 - temporary solved by change shortcut from ⌘ + . into ⌘ + , and change setting shortcut from ⌘ + , into ⌘ + . but now i still cannot use cmd + . in vscode only.
🌐
GitHub
github.com › microsoft › vscode › issues › 337432
Command click isn't working · Issue #337432 · microsoft/vscode
1 month ago - and then I wanna access the file directly by command + click the path files, sometime it's working sometime it's not. I find it annoying. VS Code version: Code 1.138.0 (7debcd0, 2026-09-15T07:24:32Z) OS version: Darwin arm64 25.6.0 Modes: ... 2d_canvas: enabled GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M5, Version 26.6.2 (Build 25G83))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.6.2 ACTIVE Machine model name: Mac Machine model version: 17.3 direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: enabled_on trees_in_viz: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgpu: enabled webnn: disabled_off
Author: microsoft
🌐
GitHub
github.com › Microsoft › vscode › issues › 55942
Go to definition or Cmd + Click not working · Issue #55942 · microsoft/vscode
August 7, 2018 - Issue Type: Bug I have function defined and used in javascript right click and click on go to definition states "No Definition found for 'testFn'" VS Code version: Code 1.25.1 (1dfc5e5, 2018-07-11T15:33:29.235Z) OS version: Darwin x64 17...
Author: microsoft
🌐
GitHub
github.com › microsoft › vscode › issues › 71800
Mac shortcut not working (in vscode) [cmd+h or cmd+m] · Issue #71800 · microsoft/vscode
April 5, 2019 - VSCode Version: 1.60.1 ( Recent ) OS Version: Mac 11.15.2 · Steps to Reproduce: On Release Note Screen · (hide or minimize) cmd+h or cmd+m does not work (have not tried other shortcut). Does this issue occur when all extensions are disabled?: Yes ·
Author: microsoft
🌐
GitHub
github.com › microsoft › vscode › issues › 269673
Ctrl+click stopped working · Issue #269673 · microsoft/vscode
October 3, 2025 - I encountered this issue yesterday on my Macbook after a clean install (including removing all cached directories). I'll open a new issue if this is considered closed, but just noting it here: ... About info on VSCode: Version: 1.104.3 (Universal) Commit: 385651c Date: 2025-10-02T12:30:51.747Z Electron: 37.3.1 ElectronBuildId: 12404162 Chromium: 138.0.7204.235 Node.js: 22.18.0 V8: 13.8.258.31-electron.0 OS: Darwin arm64 24.6.0 ... Command Palette does not register the click, only the meta keypress and not the click.
🌐
Cursor
forum.cursor.com › support › help
Cmd + click not working to jump to function definition in Cursor - Help - Cursor - Community Forum
October 17, 2024 - 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?