Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ctrl+Right behavior option #3577

Closed
chrisdias opened this issue Mar 1, 2016 · 3 comments
Closed

Add Ctrl+Right behavior option #3577

chrisdias opened this issue Mar 1, 2016 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@chrisdias
Copy link
Member

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.

@Pajn
Copy link

Pajn commented Mar 7, 2016

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

@alexdima
Copy link
Member

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" }

@alexdima
Copy link
Member

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

@alexdima alexdima added the bug Issue identified by VS Code Team member as probable bug label Mar 17, 2016
@alexdima alexdima assigned bpasero and unassigned alexdima Mar 21, 2016
@bpasero bpasero added the verified Verification succeeded label Mar 21, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants