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

Tabs do not align to tab stops when emoji are used #172349

Open
aaronfranke opened this issue Jan 25, 2023 · 0 comments
Open

Tabs do not align to tab stops when emoji are used #172349

aaronfranke opened this issue Jan 25, 2023 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-core Editor basic functionality
Milestone

Comments

@aaronfranke
Copy link

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

  • VS Code Version: 1.74.3
  • OS Version: macOS 13.1

Steps to Reproduce:

  1. Copy this text into VS Code:
Hello	There
Hello👋	There
  1. Observe that the "There" text on the line with the emoji is shifted to the left:

Screenshot 2023-01-24 at 11 01 40 PM

  1. Speculation: My guess is that this is caused by the emoji being between 1 and 2 characters wide, but it "takes up" 2 characters of the tab's width, so the tab is displayed with one character of width, which is wrong.

  2. The desired behavior is that the "There" text is aligned, just like on GitHub. A tab's width should not be calculated based on the characters to the left of it, it should only ever have its right edge at the next tab stop, such that the text to its right starts at the next tab stop.

@bpasero bpasero assigned hediet and unassigned bpasero Jan 25, 2023
@hediet hediet added this to the Backlog milestone Jan 26, 2023
@hediet hediet added bug Issue identified by VS Code Team member as probable bug editor-core Editor basic functionality labels Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug editor-core Editor basic functionality
Projects
None yet
Development

No branches or pull requests

4 participants