-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Allow customization of mouse shortcuts #3130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 I would like to do |
+1 |
I've found an interesting performance implication resulting from the current defaults/lack of configurability. Consider the hard-coded modifier associated with the "peek definition" functionality. If a plugin must do some work to provide the definition, it's very likely VSCode will ask plugins for definition information even when the user has no intention of obtaining it. As I describe in microsoft/vscode-go#257 (comment):
When using vscode-go, this means significant extraneous energy usage which could be avoided almost entirely by providing modifier key settings for "peek definition". Not only would the feature be convenient and allow for better host OS GUI integration, but VSCode would be more CPU-efficient for common usages. |
+1 – Atom, Sublime and jsbin.com (presumably others, too) all allow creation of multiple cursors with ⌘+click (on a Mac, at least). It'd be good to be forced to learn as few new shortcuts as possible when switching to a new editor. |
I'm just completely avoiding using alt+ @alexandrudima any thoughts on when you could get to this? It's blocking adding cursors via mouse on Linux. I can take a shot at it if you give a high level approach. |
+1 I just discovered VS Code and I'm loving it, but as a long time Sublime Text user on Linux, I'm missing the ctrl + click ability. Would love to be able to customize mouse shortcuts. |
From @ChristopherHaws in #6853
|
+1 for customization. |
I would like to note, that adding cursors with the mouse is impossible on Linux, because |
It's probably too complicated and nobody dares to refactor it. My advice is to configure your window manager to translate some mouse actions into others. Awesomewm is very flexible for this, for example I added song queue on middle click even though Audacious doesn't support this natively. On Windows you probably can use Autohotkey. |
@madprops It's not "too" complicated, in the last 8 years there has been a pull request for vs code and an extension that relied on it that implemented this feature. Many usable ways to work around the missing feature using auto hotkey has already been documented in this thread. This ticket should actually just be closed by Microsoft as "will not do" and just end the thread and the misery of people actually thinking they would ever take any interest in implementing this basic IDE feature. |
For Mac users, to mimic IntelliJ's middle click behavior, here is my workaround config to map {
"description": "VS Code middle click",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.microsoft\\.VSCode$"
],
"type": "frontmost_application_if"
}
],
"from": { "pointing_button": "button3" },
"to": [
{
"modifiers": ["left_command"],
"pointing_button": "button1"
}
],
"type": "basic"
}
]
} |
+1 |
Hey @hediet, this issue has been assigned to you for years. Are you intent on working on it in 2025? This is the second most upvoted feature on the issue tracker. |
Looking at the backlog, it seems there's 128 things in front of this one. Looking at recent issues closed, it ranges from 3-16 per week. This one in particular could take 8-42 weeks just to have someone start working on it (assuming nothing else gets higher priority than this). In other words, just give up on this, look into AHK and build some scripts with that instead. |
It's been a while, but I believe I was already exploring it (well, a similar approach, since AHK is, I believe, Windows-only). I think binding middle mouse button to emulate Ctrl+B ("Go to definition") led to some weirdness when I used middle mouse button to close a tab. |
If you have a programmable mouse that exposes a HID keyboard, assigning extra buttons to some Fx keys may help the issue. I.e. I have an A4tech X7 series mouse (it is hardware programmable), and I've changed its 3 extra buttons to emit F10/F11/F12 codes. |
9 Years Now. I'm still waiting for this feature |
Based on @brunolm's info above, we'll probably be waiting for another year or two, if not indefinitely. In large tech orgs, no one gets promoted for addressing basic user experience/usability issues. I had Apple ignore a similar issue for a decade or two back when I was a Mac user. I believe it is still unaddressed. 😦 |
Please add this 🙏🏻 |
Shall we beg? ;/ That's why JetBrains IDEs are better |
Need this badly 🙏 |
I currently have a mouse with 2 extra buttons, which are doing absolutely nothing, and could do something if this feature becomes live. |
Need this badly 🙏 |
|
Please add this 🙏🏻 |
+1 |
1 similar comment
+1 |
Don't forget to include the macbook long-press please, as in IntelliJ a long press can jump to definition |
Please please please can we implement this. |
honestly a shame.. im trying to migrate from PHPstorm to VScode but definetly not feeling it... cant change years of muscle memory just because they wont implement mouse keybinds... |
We're less than a year from the one decade anniversary of this issue being reported! 🥳 |
just a noob here, but is it possible to make an extension for this that can connect with stroke plus or other similar applications |
-reported |
I tried to implement an extension working when in an editor. But the vsc api does not allow to listen to mouseevents (might be a security concern) but I managed to using a separate webview for tracking a gesture. have a look Mouse Gestures for Visual Studio Code |
wow...i broke my finger...just switched from goland to vs code , goland has an option to assign mouse shortcut, so I assigned it to a middle mouse click, and this is open since 2016, so I need to go back to goland i guess |
Some users would like to be able to customize not just pure keyboard shortcuts but also mouse + modifier ones. These are currently hard coded, for example alt+click to add a selection.
See #3091 for some more context.
The text was updated successfully, but these errors were encountered: