-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
word wrap is broken #66510
Comments
(Experimental duplicate detection)
|
What I use is press "move to end" twice. |
Thanks, this is helpful. I think the issue still stands, though, and shows other people have work-arounds for this odd behavior. "Move to line start" is still awkward with moving to the start of the line on multiple lines when some are indented and wrapped and some are indented and not wrapped (You can never get these cursors in sync). |
I have just tried Sublime and they behave the same way. Out of the box, But if you don't like this out of the box behaviour, you can easily customize your keybindings (e.g. in your
|
Issue Type: Bug
Summary: word wrap doesn't work as expected with the cursor when moving to the end of the line or selecting the entire line. Selecting a line should select all of the line, regardless of where the line visually wraps. VSCode's behavior is inconsistent with other editors, and the current behavior is not useful.
Steps to reproduce
Expected: cursor moves to the end of the line regardless of word wrap
actual: cursor moves to the position where the line is wrapped.
Why this is a problem:
This causes super weird behavior when trying to work with multiple cursors. Imagine a large list of file names where one line happens to wrap. You'd expect to be able to select all, split the selection into cursors, move to the end of the line, and delete the last 3 characters to change the extension, however this doesn't work on the line that wraps.
This also creates weird behavior with "select this line" shortcuts.
I can't think of any cases where it's valid to select a line only up to the point where it wraps to the next line.
Treating a "line" as "a line of text post-wrap" rather than "a line of text pre-wrap" like this is also causing these related multi-cursor bugs:
#65815
#26393
VS Code version: Code 1.30.2 (61122f8, 2019-01-07T22:48:31.260Z)
OS version: Darwin x64 16.7.0
Extensions (22)
The text was updated successfully, but these errors were encountered: