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
Allow customization of mouse shortcuts #3130
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 |
Is there a way to get rid of the "ctrl+shift+left click" keybind that moves the text around? This has been driving me nuts for years |
It seems the result is a combination of multiple binds triggering simultaneously. Worth reporting as a separate issue. |
If there's still a spot left for the beach house, I would love the "Right Click + Scroll Wheel" room :) |
thanks! I have a Logitech mouse so this solved my issue (for now) |
For anyone who doesn't know what this is talking about: |
Little bit early for the 8 year anniversary of this request, but happy anniversary everyone. Bumping this issue because some of us in my company would like to be able to tweak this as well. |
Happy eight-year anniversary on this issue, everyone! At least it's still open. Though maybe if they just marked it as "won't fix" we can all get some closure. @Tyriar? Put us out of our mystery? Take us out the back. A farm upstate. I note that Rider has the same problem, even if you assign ctrl-click to select word (which I'm grateful to be able to do at least), it doesn't work if you drag select. Double click drag is apparently the new universal paradigm for block selection. More interactions is the new fewer interactions. |
It would be great to be able and set |
+1 |
@janhaertel Indeed, we've reached the phase where annoying them into submission is the only remaining course of action. |
@psychicteeth can you elaborate on your comment, "I note that Rider has the same problem, even if you assign ctrl-click to select word (which I'm grateful to be able to do at least), it doesn't work if you drag select." Also, if there is any way to disable the ctrl-click goto feature at all, then select word and drag select will work without any issues on Windows using my previous post (it works about 95% of the time but jumps the screen about 5% of the time because of the goto feature): |
Sure, if you go into the keymap and assign Ctrl-click to Extend Selection, and remove it from Go To Definition, you get the behaviour I describe |
@psychicteeth ok I think you are referring to Visual Studio and its features, but the thread is about Visual Studio Code. If you are referring to Visual Studio and not Code you probably want to open a ticket on the Visual Studio support forums. However, if you are referring to Visual Studio Code please help me understand how you have that menu in Code. Thanks! |
I think you may want to consider trying "Copy on Selection" https://code.visualstudio.com/updates/v1_20#_copy-on-selection |
I'm referring to Rider, as clearly stated in my post :D "Rider has the same problem" - the feature exists, you can select a word and drag to select more words, you just can't assign it to any other function than double click drag. Sorry for the confusion! |
Everyone please stop pinging me, I get enough notifications already. I will not be the one implementing this; I requested the feature. |
This comment was marked as spam.
This comment was marked as spam.
It's clearly indicated to whom the issue is assigned. He's obviously busy with other work and usually on big projects is not the coders who assign themselves tasks but producers (maybe it's different in other software; I work in games). Some acknowledgement of a timeline or some other kind of outlook from someone would be good, though. |
@ThaJay keep doing that and our options are either blocking you or locking the issue. @psychicteeth I don't have much insight into that unfortunately. I know it was looked at a year or 2 ago and I think it was harder than initially anticipated to do right. |
Thanks Daniel. I imagine if it were easy it would have been done already! |
Thanks for posting this. I was unaware of the setting and this has been annoying me for years. |
@Tyriar back in 2021 you closed #136633 stating
With this one not moving, is it perhaps time to reopen that one and reconsider letting it in? Thank you! |
This comment was marked as spam.
This comment was marked as spam.
👍 |
In the meantime, you can use this AHKv2 script: (Note: Works in Chrome and related editors, Notepad++, and also in Windows Terminal shells) #Requires AutoHotkey v2.0
; Ctrl+Left Mouse button down send double-click to select the whole word under cursor (with enabled range selection)
#HotIf ((WinActive("ahk_class Notepad++") || WinActive("ahk_class Chrome_WidgetWin_1")) && A_Cursor == "IBeam") || WinActive("ahk_class CASCADIA_HOSTING_WINDOW_CLASS")
~^LButton::
{
Send("{LButton Down}")
Send("{Ctrl Down}")
}
#HotIf |
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: