microsoft/vscode

Ability to disable GoToDefinition on Ctrl+LeftMouseClick

ChristopherHaws opened this issue · 2 comments

  • VSCode Version: 1.1.1
  • OS Version: Windows 10 Pro

In Visual Studio (full version), I tend to turn off the Ctrl+LeftMouseClick go to definition feature. I personally prefer to have Ctrl+LeftMouseClick select the entire word under my mouse cursor.

From what I can see, mouse events are not configurable at the moment, and they are also not possible to override with extensions (to the best of my knowledge). It would be really nice to have a mouse mapping configuration file. Sublime Text has this (although it is sort of a hidden feature that is not exposed through the UI). Just as an example, my sublime text mousemap file looks like this:

[
    {
        "button": "button1", "count": 1, "modifiers": ["ctrl"],
        "press_command": "drag_select",
        "press_args": {"by": "words"}
    }
]

Duplicate of #3130, copied your comment over

For anyone looking how to achieve what I wanted to do in my original post, you are able to do it with the following keyboard binding in VS Code:

[
    { "key": "ctrl+[mouse button]",     "command": "cursorWordLeft",
                                           "when": "editorTextFocus" },
]