-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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 doesn't work well with control characters #112382
Comments
(Experimental duplicate detection) |
The default word wrapping algorithm assumes (mostly) that all characters have the same width. You can change that (at the cost of performance) with |
Thanks for the reply, I wasn't aware of that setting, after changing it to advanced, it did help in some cases, however, I'm still seeing horizontal scroll bar if the entire line is control characters. |
@JayXon Here I have tried with the following settings:
But this is the rendering I get: Do you perhaps use a custom font family that would render that specific control character better? |
If I turn off renderControlCharacters and set wrappingStrategy to advanced, then I can no longer reproduce.
But can reproduce if renderControlCharacters is true, or wrappingStrategy is simple, or both. |
Thank you, I could reproduce. The substitution characters for control characters are often wide, so I will adjust the char width computation to assume that these characters are wide. |
This bug has been fixed in to the latest release of VS Code Insiders! @JayXon, you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text Happy Coding! |
Rendering control characters and using the advanced wrapping strategy results in a scrollbar. |
@rzhao271 Should the issue be reopened then? |
@rzhao271 This works for me. When using
|
@rzhao271 Thank you, I could reproduce with |
Steps to Reproduce:
type a long line with control characters in it, for example
�
observe that horizontal scroll bar shows up
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: