You are looking for
cursorWordPartRight
which is bound to Shift–Alt–Q.
Alt–Right 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