Vscode: Keyboard shortcut chords with bare shift

Created on 19 Jul 2017  路  3Comments  路  Source: microsoft/vscode

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?

feature-request keybindings

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).

All 3 comments

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 ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sirius1024 picture sirius1024  路  3Comments

trstringer picture trstringer  路  3Comments

omidgolparvar picture omidgolparvar  路  3Comments

DovydasNavickas picture DovydasNavickas  路  3Comments

borekb picture borekb  路  3Comments