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

sirius1024 picture sirius1024  路  3Comments

VitorLuizC picture VitorLuizC  路  3Comments

borekb picture borekb  路  3Comments

DovydasNavickas picture DovydasNavickas  路  3Comments

curtw picture curtw  路  3Comments