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

Update ctrl+left and ctrl+right word boundary commands to be consistent with other platforms #32246

Closed
stringham opened this issue Aug 10, 2017 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-commands Editor text manipulation commands
Milestone

Comments

@stringham
Copy link
Contributor

In vscode when I navigate with ctrl+left and ctrl+right it stops on either side of word boundary characters rather than going to the beginning/end of each word. This behavior is inconsistent from other platforms. I've checked both sublime text, and chrome. (Even as I type in this submit an issue text box.)

If you have text that looks like:

this.is.a.test and navigate with ctrl+left or ctrl+right, in most platforms you get from the beginning to the end with 4 key presses. With vscode it takes 7.

A few gifs to illustrate, pressing ctrl+left to get to the beginning and then ctrl+right to get to the end.:

Sublime Text:
sublime-word

Chrome:
chrome-word

vscode:
vscode-word

@vscodebot vscodebot bot added editor editor-core Editor basic functionality labels Aug 10, 2017
@rebornix rebornix added the under-discussion Issue is under discussion for relevance, priority, approach label Aug 10, 2017
@stringham
Copy link
Contributor Author

It's probably worthwhile figuring out if we should change this behavior by default.

I saw this relevant article on hackernews today: http://www.niladicpodcast.com/blog/2017/1/whats-the-deal-with-ctrlleft-and-ctrlright/

In the meantime, I've implemented this behavior as an extension: https://marketplace.visualstudio.com/items?itemName=stringham.cursor-move

@alexdima alexdima self-assigned this Oct 26, 2017
@alexdima
Copy link
Member

Done via #41199 and #48046

@alexdima alexdima added this to the April 2018 milestone Apr 18, 2018
@alexdima alexdima added *duplicate Issue identified as a duplicate of another issue(s) editor-commands Editor text manipulation commands and removed editor editor-core Editor basic functionality under-discussion Issue is under discussion for relevance, priority, approach labels Apr 18, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-commands Editor text manipulation commands
Projects
None yet
Development

No branches or pull requests

3 participants