kasecato / vscode-intellij-idea-keybindings

Port of IntelliJ IDEA key bindings for VS Code.
https://marketplace.visualstudio.com/items?itemName=k--kato.intellij-idea-keybindings
MIT License
810 stars 135 forks source link

How to disable 'double shift' press for 'Search files by name' dialog #348

Open seigert opened 2 months ago

seigert commented 2 months ago

As of v1.7.1 VSCode suddenly started to show me 'Search files by name' after (seemingly) random keypresses.

After some research I've found that it reacts on some phantom double-shift presses that I make while typing (like, shift, unpress, shift-I for 'I'). After some more reasearch I've found that disabling this extension resolves the problem, but that would be rather unfortunate.

Besides, I do not have this problem in IntelliJ IDEA itself -- maybe because pause between shift presses are slightly bigger or because Idea does not react to shift-shift-character presses.

Either way, right now I looking for a way to disable this function for extension, but cannot find it neither in keybinding nor in extension settings.

grgar commented 2 months ago

It's in Keyboard Shortcuts, search for "shift shift".

Screenshot 2024-04-27 at 8 32 54 PM

You can disable it by right-click → Remove Keybinding on that row, or add the following to your keybindings.json:

{
    "key": "shift shift",
    "command": "-workbench.action.quickOpen"
}
kasecato commented 2 months ago

The way to disable it is as described by https://github.com/kasecato/vscode-intellij-idea-keybindings/issues/348#issuecomment-2081160641

I'll add "how to disable" to README.md at v.1.7.2

seigert commented 2 months ago

Thanks, I've found it!

But somehow, this keybinding does not use shift icon on Mac OS, and uses literal shift word (while all other keybindings use icon), which may be threw me off...

Screenshot 2024-05-02 at 11 22 12