Based on this article by Damir Ahr.
- Open
%APPDATA%\Code\User\keybindings.json
- 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"
}
]