Skip to content

Editor Rulers do not account for Tab display size #228215

Open
@InSuperposition

Description

Summary:
When working in Visual Studio Code (VS Code), the editor rulers are visually misaligned with code indentation when using tabs. The rulers assume that every tab is displayed as a fixed number of spaces, but this does not dynamically account for the display width set for tabs. As a result, when tabs are displayed at a size different from the default, the rulers become inaccurate.

Expected Behavior:
The rulers should adjust according to the tab display size. When the tab width is set to 2 spaces, rulers should account for each tab character as occupying 2 columns in the editor, ensuring that the visual representation of the code matches the ruler guide.

Actual Behavior:
The rulers treat each tab as a fixed number of spaces, regardless of the user-configured tab width. This leads to visual misalignment between the ruler and the code when working with non-standard tab sizes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugeditor-contribEditor collection of extras

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions