I'm very used to the IntelliJ chord "shift shift" (pressing shift twice without any other key) to open the search everywhere feature and would like to use the chord in Visual Studio Code to open the "Go to file" dialog. Unfortunately bare shifts as keys are not accepted as far as I can tell from the documentation and from trying out {
"key": "shift shift",
"command": "workbench.action.quickOpen"
} in keybindings.json. Would it be possible to add bare shifts as accepted keys for keyboard chords?
After using VSC for a few days now, this is the only feature I'm really missing from IntelliJ (shift shift with search everywhere).
FWIW, I was able to replicate this on Mac by using this rule for karabiner-elements, and binding { "key": "cmd+k cmd+k", "command": "workbench.action.quickOpen" }. If you're on Windows, you can probably achieve something similar with AutoHotkey.
vscode.json
{
"title": "VS Code",
"rules": [
{
"description": "Change left_shift to cmd+k if pressed alone",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift"
}
],
"to_if_alone": [
{
"key_code": "k",
"modifiers": [
"left_command"
]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"com\\.microsoft\\.VSCode",
"com\\.microsoft\\.VSCodeInsiders"
]
}
]
}
]
}
]
}
@alexandrudima, Is this a duplicate of #5280 ?
Most helpful comment
After using VSC for a few days now, this is the only feature I'm really missing from IntelliJ (shift shift with search everywhere).