From the position in my screenshot, if I do ctrl+left, the cursor will skip the . symbol. Same for ={, it will skip = symbol. How can I prevent this behavior in VS Code, and not skip that? In JetBrains products, it works like that, and it’s really bothers me in VS Code.
I believe you want the cursorWordStartLeft and cursorWordStartRight bindings to be bound. You can set them to whatever you want, but you probably want them to be the same as the cursorWordLeft and cursorWordRight. Of course you also probably want to unbind the other controls too. You also probably want the same when condition which is textInputFocus && !accessibilityModeEnabled:
After setting this bindings, the cursor behaves more like how you want:
There are the following keybinding commands that you can experiment with using, and tuning to your taste: cursorWordStartLeft, cursorWordStartRight, cursorWordEndLeft, and cursorWordEndRight.
There are also things like cursorWordAccessibilityLeft (seems to skip more), cursorWordPartLeft (Ex. stops at things like capitals in camel-case words), and cursorWordPartStartLeft that you can experiment with.
For example here’s how you can unbind the default cursorWordLeft and cursorWordRight from ctrl+left and ctrl+right, and instead bind them to cursorWordStartLeft and cursorWordEndRight:
2
Answers
I believe you want the
cursorWordStartLeft
andcursorWordStartRight
bindings to be bound. You can set them to whatever you want, but you probably want them to be the same as thecursorWordLeft
andcursorWordRight
. Of course you also probably want to unbind the other controls too. You also probably want the same when condition which istextInputFocus && !accessibilityModeEnabled
:After setting this bindings, the cursor behaves more like how you want:
There are the following keybinding commands that you can experiment with using, and tuning to your taste:
cursorWordStartLeft
,cursorWordStartRight
,cursorWordEndLeft
, andcursorWordEndRight
.There are also things like
cursorWordAccessibilityLeft
(seems to skip more),cursorWordPartLeft
(Ex. stops at things like capitals in camel-case words), andcursorWordPartStartLeft
that you can experiment with.For example here’s how you can unbind the default
cursorWordLeft
andcursorWordRight
from ctrl+left and ctrl+right, and instead bind them tocursorWordStartLeft
andcursorWordEndRight
: