Skip to content

Text wrapping not working correctly in Linux #315541

@apoco

Description

@apoco

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.119.0
  • OS Version: Ubuntu 24.04.2 LTS

Word wrapping does not work correctly in Linux. It seems like the rendering engine is miscalculating the width of the text and are inserting soft breaks too late. The text extends dozens of pixels beyond the boundaries of the text box's dimensions before wrapping.

This has not been a problem for Windows on my work machine.

Steps to Reproduce:

  1. In a text box, type enough content so that it exceeds its width

Expected behavior:
The text wraps to the next line

Actual behavior:
The text box scrolls horizontally until another breaking point.

Cursor at the end of a wrapping line:
Image

Cursor at the beginning:
screenshot

This is not a new problem, by the way, it's been long-standing.

Some more specifics (let me know what other details would be helpful):

  • XDG_SESSION_TYPE is x11
  • Desktop environment is i3wm, Regolith
  • I notice that spaces are really wide, more than they would normally be for variable-width fonts.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions