Vscode: Add Ctrl+Right behavior option

Created on 1 Mar 2016  ·  3Comments  ·  Source: microsoft/vscode

Ctrl+Right behaves like sublime, it goes to the end of the current word.

VS (and other Windows editors such as notepad, word) goes to the beginning of the next word.

To satisfy both camps we should add an editor option to control this behavior.

bug verified

Most helpful comment

To control this behaviour and get VS-style Ctrl+Right, please edit your keybindings.json and add:

{ "key":"ctrl+right",       "command":"cursorWordStartRight",       "when":"editorTextFocus" }
{ "key":"ctrl+shift+right", "command":"cursorWordStartRightSelect", "when":"editorTextFocus" }

This will overwrite the defaults:

{ "key":"ctrl+right",       "command":"cursorWordEndRight",       "when":"editorTextFocus" }
{ "key":"ctrl+shift+right", "command":"cursorWordEndRightSelect", "when":"editorTextFocus" }

All 3 comments

It would be great with an option for Ctrl+Left too for the behavior mentioned in #943

To control this behaviour and get VS-style Ctrl+Right, please edit your keybindings.json and add:

{ "key":"ctrl+right",       "command":"cursorWordStartRight",       "when":"editorTextFocus" }
{ "key":"ctrl+shift+right", "command":"cursorWordStartRightSelect", "when":"editorTextFocus" }

This will overwrite the defaults:

{ "key":"ctrl+right",       "command":"cursorWordEndRight",       "when":"editorTextFocus" }
{ "key":"ctrl+shift+right", "command":"cursorWordEndRightSelect", "when":"editorTextFocus" }

Please also see #832 for getting VS-style Ctrl+Delete.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shanalikhan picture shanalikhan  ·  3Comments

NikosEfthias picture NikosEfthias  ·  3Comments

trstringer picture trstringer  ·  3Comments

omidgolparvar picture omidgolparvar  ·  3Comments

lukehoban picture lukehoban  ·  3Comments