Does anyone know how I can turn off or remap Ctrl + left click in Visual Studio Code? I seem to have the Ctrl key depressed when selecting text with my mouse to copy about 20% of the time, and it is really annoying to navigate to another file in the middle of it.
Asked
Active
Viewed 5,445 times
4
-
Is this what you're looking for? http://stackoverflow.com/questions/12137953/how-to-remap-the-ctrlclick-go-to-definition-short-key-in-the-productivity-pow – E. Moffat Dec 16 '15 at 21:11
-
@E.Moffat that's for visual studio—not visual studio code. – David Sherret Dec 16 '15 at 21:52
-
@DavidSherret Totally missed that. My mistake! – E. Moffat Dec 16 '15 at 21:56
-
1@E.Moffat it's an easy mistake to make that happens all the time. It's slightly annoying how similarly named the two applications are. – David Sherret Dec 16 '15 at 21:58
1 Answers
2
I took a quick peek at the VS Code keyboard shortcuts documentation and found a list of accepted keys.
Usually you would go to File > Preferences > Keyboard Shortcuts and add your custom bindings like so:
(this is the keybindings.json file found @ C:\Users\[user]\AppData\Roaming\Code\User)
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "f8", "command": "workbench.action.tasks.build" },
{ "key": "ctrl+[mouse button]", "command": "cursorWordLeft",
"when": "editorTextFocus" }
]
But unfortunately, according to the documentation, mouse rebinding seems unsupported.
That being said VS Code is an open source project so you could always propose this feature or pitch in and see what you can do!
Here's the config file for the editor. https://github.com/Microsoft/vscode/blob/master/src/vs/editor/common/config/config.ts

Wictor Chaves
- 957
- 1
- 13
- 21

Alexandre Michel
- 58
- 6
-
Thanks! Too bad it isn't supported. Maybe if I get time I'll attempt to add it. – sky-dev Dec 17 '15 at 15:45
-
It should also be worth noting that VIsual Studio Code will operate differently depending on what language and/or extensions are installed and active – netniV Dec 17 '15 at 17:30