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

Ctrl + Click go to definition not working.
Does F12 work? I think that behavior might be related to the specific file type, or associated Extension. More on reddit.com
🌐 r/vscode
7
3
January 26, 2022
What VS Code extension can I use to go to declaration on ctrl + click?
I can Ctrl + Click and it goes to the declaration in the PHP, like this: The problem is, my files do not only have PHP. It doesn't work with JavaScript functions as you can see: Is there any exte... More on softwarerecs.stackexchange.com
🌐 softwarerecs.stackexchange.com
What is the keyboard shortcut for CTRL + CLICK in Visual Code? - Stack Overflow
What is the shortcut key to Ctrl+Click (Follow Link) in Visual Code? If it doesn't have one, is there any way to add it? In Eclipse, if I press F3 I can open the file, like Ctrl+Click More on stackoverflow.com
🌐 stackoverflow.com
Overwriting Ctrl + Click behavior
Ctrl + Click on a symbol is a shortcut for "Go to definition". I would want to instead select / highlight the text (same as double clicking), just like in Visual Studio. I tried editing t... More on github.com
🌐 github.com
4
April 14, 2016
🌐
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 - You can install "MouseNavigation" plugin from VScode marketplace and can set custom mouse gestures controls and that's it. Try searching for the VScode plugin on Google. ... Hi Anna!
🌐
YouTube
youtube.com › watch
Fix Ctrl+Click Not Working in VSCode | Quick Solution - YouTube
Is Ctrl+Click (Go to Definition) not working in Visual Studio Code? In this quick tutorial, I’ll guide you through simple steps to fix the issue and improve ...
Published: April 28, 2025
Find elsewhere
🌐
GitHub
github.com › microsoft › vscode › issues › 5279
Overwriting Ctrl + Click behavior · Issue #5279 · microsoft/vscode
April 14, 2016 - I would want to instead select / highlight the text (same as double clicking), just like in Visual Studio. I tried editing the keyboard shortcuts, but it doesn't look like I can use mouse inputs (ctrl+click or ctrl+mouse1 or ctrl+mouseleft didn't work).
Author: microsoft
🌐
Visual Studio Code
code.visualstudio.com › docs › terminal › basics
Terminal Basics
1 day ago - Hover over a link to display an underline, then hold the Ctrl/Cmd key and click. These built-in link handlers are used in the following priority order: URIs/URLs: Links that look like URIs, such as https://code.visualstudio.com, vscode://pa...
🌐
Visual Studio Code
code.visualstudio.com › shortcuts › keyboard-shortcuts-windows.pdf pdf
General Ctrl+Shift+P, F1 Show Command Palette Ctrl+P Quick Open, Go to File…
General · Ctrl+Shift+P, F1 · Show Command Palette · Ctrl+P · Quick Open, Go to File… · Ctrl+Shift+N · New window/instance · Ctrl+Shift+W · Close window/instance · Ctrl+,
🌐
Elixir Forum
elixirforum.com › t › vscode-ctrl-click-to-go-to-module › 53473
VSCode Ctrl-Click To Go to Module | Elixir Forum
January 24, 2024 - Hi @Majorix you’ll want to install the GitHub - elixir-lsp/vscode-elixir-ls: Elixir language support and debugger for VS Code, powered by ElixirLS. · GitHub extension. ... I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> somethi... ... Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
🌐
Reddit
reddit.com › r/vscode › how to map go to implementation with ctrl + left mouse click ?
r/vscode on Reddit: How to map go to Implementation with ctrl + left mouse click ?
January 23, 2024 -

Default is go to declaration, but I want to go to Implementation (It can be even ctrl shift + left mouse click), currently it is ctrl + f12, but I want to map it to left mouse button, or change behaviour in vs code instead of going to declaration always inside classService file, to go immidiatelly to classServiceImpl file to the implementation, is there anyway to acomplish this ?

🌐
GitHub
github.com › microsoft › vscode › issues › 32143
Ctrl + Click is not working VS Code Editor(Javascript file) · Issue #32143 · microsoft/vscode
August 8, 2017 - VSCode Version: 1.14.2 · OS Version: Ubuntu 14.04 LTS · Steps to Reproduce: create a Javascript function · invoke that function · Do a Ctrl + click -> earlier it used to go to that definition. But after recent update it is not going to that definition. BTW, F12 is working.
Author: microsoft
🌐
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 ...
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Ctrl+Click Go To Definition - Visual Studio Marketplace
October 18, 2018 - Sign in · Visual Studio>Tools>Ctrl+Click Go To Definition ·
🌐
Reddit
reddit.com › r/vscode › how exactly does ctrl + click in vs code work?
r/vscode on Reddit: How exactly does ctrl + click in vs code work?
April 4, 2023 - Supposing MoleculeA is used in OrganismA, and I wanted to go to it's definition (which should be MoleculeA.jsx) since control click isn't working, I have to manually navigate through like 3 folders.