Visual Studio Code – How to jump by word with [Alt]+[Left/Right]

You are looking for

cursorWordPartRight

which is bound to ShiftAltQ.

AltRight is bound to a “Go Forward” command, you could delete that binding and use it for the cursorWordPartRight command.

{
    "key": "alt+right",
    "command": "cursorWordPartRight",
    "when": "editorTextFocus",
  },
  {
    "key": "alt+left",
    "command": "cursorWordPartLeft",
    "when": "editorTextFocus",
  }

It may require that each language parser support it though. It does work in JavaScript.

cursorWordPartLeft (command exists but is unbound by default).

There are also these other unbound relevant commands:

cursorWordPartRightSelect
cursorWordPartLeftSelect
cursorWordPartStartLeft
cursorWordPartStartLeftSelect

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)