Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Double same key keyboard shortcuts [duplicate]

Is there a way to use the same key for a shortcut? For example, on Mac, IntelliJ uses shift shift (double tap the shift key) for searches. I would like to mimic that function in VSCode, but it doesn't appear to accept that as a valid shortcut. I can save it, but nothing happens when I try to use it.

like image 608
Coder-guy Avatar asked Jun 14 '26 05:06

Coder-guy


1 Answers

It is possible, with VSCode 1.54 (Feb. 2021)

Modifier only keybindings

It is now possible to define keybindings for duplicate modifiers:
e.g. shift shift, alt alt, ctrl ctrl or cmd cmd / meta meta / win win.
These keybindings can be entered manually in keybindings.json. e.g.:

{ "key": "shift shift", "command": "workbench.action.quickOpen" }
like image 159
VonC Avatar answered Jun 18 '26 00:06

VonC