-
Notifications
You must be signed in to change notification settings - Fork 30.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 imprecise with non-monospace fonts #12421
Comments
@jmcooper Try changing the setting: |
@alexandrudima Thanks, but that affects the behavior of the left indent. I've tried changing that and it doesn't help. |
@chrmarti Is there some info you need that I can get you? |
@jmcooper To clarify: You are referring to the spacing left of the line numbers, right? |
No, I'm referring to all the white space on right side, after the code. It |
We only wrap on whitespace it seems. |
That's not the problem, I already tested that by adding some whitespace and |
@chrmarti Notice in this screenshot how line 22 is wrapping. There is plenty of space for the |
@jmcooper Thank you for the clarifications. Now I understand what you mean. Word wrapping cut points are computed on our side based on two characters widths, namely the width of Given your text doesn't contain CJK full-width characters, only the width of TL;DR The computation of wrapping cut points is imprecise for non-monospaced fonts. |
Ahh, this makes sense. I didn't realize the font I was trying to use wasn't installed, so I was getting a non-monospaced font. |
Let's track in #2654 |
I'm seeing a wide right margin in my editor when I have word wrap on.
I don't see this on other computers. Not sure what's up. This is all I have in my user settings:
// Place your settings in this file to overwrite the default settings
{
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.fontSize": 21,
"editor.fontFamily": "Source Code Pro",
"git.enabled": false
}
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: