Skip to content

Instantly share code, notes, and snippets.

@Structed
Last active April 16, 2022 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Structed/f5188bfc65e51375330000a62ac41228 to your computer and use it in GitHub Desktop.
Save Structed/f5188bfc65e51375330000a62ac41228 to your computer and use it in GitHub Desktop.
Set up "JetBrains-stlye" keyboard shortcuts to navigate camel humps

Setting "JetBrains-sytle" keyboard shortcuts for camel-hump navigation

Based on this article by Damir Ahr.

  1. Open %APPDATA%\Code\User\keybindings.json
  2. Paste the following definition (or append teh arry, if you have existing shortcuts)
[
  {
    "key": "ctrl+right",
    "command": "cursorWordPartRight",
    "when": "textInputFocus"
  },
  {
    "key": "ctrl+shift+right",
    "command": "cursorWordPartRightSelect",
    "when": "textInputFocus"
  },
  {
    "key": "ctrl+left",
    "command": "cursorWordPartLeft",
    "when": "textInputFocus"
  },
  {
    "key": "ctrl+shift+left",
    "command": "cursorWordPartLeftSelect",
    "when": "textInputFocus"
  },
  {
    "key": "ctrl+backspace",
    "command": "deleteWordPartLeft",
    "when": "textInputFocus && !editorReadonly"
  },
  {
    "key": "ctrl+shift+backspace",
    "command": "deleteWordPartRight",
    "when": "textInputFocus && !editorReadonly"
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment