Customize Gyaanmitra

Keyboard Shortcuts

Every command has a shortcut you can look up and change. Two-key chords cover the ones you use less often.

The Keyboard Shortcuts editor

Open it with Ctrl+K Ctrl+S, or Preferences: Open Keyboard Shortcuts from the Command Palette. It lists every command that has a binding, and every command that does not. Search by command name, by the keys, or by the "when" context.

1

Find a command

Search for what you want to do, such as "format document" or "toggle sidebar". Or click Keybindings JSON in the top-right and search the raw file.

2

Change it

Click the pencil next to a command, press the new keys, and hit Enter. If those keys are already used, Gyaanmitra shows you the conflict before you confirm.

3

Scope it with 'when' clauses

Add a when context so a binding only applies in some cases. For example, only while the terminal is focused, or only while you are debugging.

keybindings.json
[
  {
    "key": "ctrl+alt+n",
    "command": "workbench.action.files.newUntitledFile"
  },
  {
    "key": "ctrl+k ctrl+enter",
    "command": "guna.chat.open",
    "when": "!gunaChatFocused"
  }
]

Key chords

A chord is a two-step shortcut. Press the first keys, let go, then press the second. That is how a large set of commands fits onto a smaller set of keys. Ctrl+K followed by another key is a common start for a family of commands (Ctrl+K Ctrl+S for shortcuts, Ctrl+K Ctrl+T for themes, and so on).

Keymap extensions

If you are coming from another editor, install a keymap extension from Open VSX (search "keymap"). It remaps Gyaanmitra's defaults toward the shortcuts your hands already know, so you do not rebind each one yourself.

Print your current keybindings

Help → Keyboard Shortcuts Reference opens a printable PDF of your current bindings, including the ones you changed.