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

The editor.wordWrap is not working properly when the variable width font is used in editor #52166

Closed
rosertech opened this issue Jun 18, 2018 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-wrapping Editor line wrapping issues

Comments

@rosertech
Copy link

rosertech commented Jun 18, 2018

The editor.wordWrap is not working properly when the variable width font is used in editor.

When the editor.wordWrap is 'on' and a fixed width font like Courier New is used, VSC wraps the long lines correctly according to viewport size.

But if I change the editor font to variable width font like Arial, VSC wraps the long lines earlier than real viewport size. So there many gaps(1~2inches in 22inch monitor) between the end of each line wrapped and viewport window.

I hope the wrapping algorithm consider this font style case.

  • The notepad++ works properly for fixed and variable width fonts both.
@vscodebot
Copy link

vscodebot bot commented Jun 18, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added editor editor-core Editor basic functionality labels Jun 18, 2018
@rosertech rosertech changed the title editor.wordWrap is not working properly in variable width font The editor.wordWrap is not working properly when the variable width font is used in editor Jun 18, 2018
@alexdima
Copy link
Member

Duplicate of #2654

@alexdima alexdima marked this as a duplicate of #2654 Jun 18, 2018
@alexdima alexdima added *duplicate Issue identified as a duplicate of another issue(s) editor-wrapping Editor line wrapping issues and removed editor editor-core Editor basic functionality labels Jun 18, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 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-wrapping Editor line wrapping issues
Projects
None yet
Development

No branches or pull requests

2 participants