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

Tab is rendering in single column #62306

Closed
octref opened this issue Oct 31, 2018 · 3 comments
Closed

Tab is rendering in single column #62306

octref opened this issue Oct 31, 2018 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-rendering Editor rendering issues

Comments

@octref
Copy link
Contributor

octref commented Oct 31, 2018

1.28.

The text in question. Just copy paste it into a new editor window. You'll see the tab rendered in single column, when it should be tabWidth columns.

<span style="color: #000000">	</span>

This is likely caused by editor.useTabStops. But I can repro no matter it's true or false.

tab

@octref octref added the editor-autoindent Editor auto indentation issues label Oct 31, 2018
@rebornix rebornix added bug Issue identified by VS Code Team member as probable bug editor-rendering Editor rendering issues and removed editor-autoindent Editor auto indentation issues labels Oct 31, 2018
@rebornix
Copy link
Member

rebornix commented Oct 31, 2018

Root cause: the inline color decorator

@octref
Copy link
Contributor Author

octref commented Oct 31, 2018

@rebornix Not really, it's plaintext file not html file, and you can repro with <span> </span> too.

@rebornix
Copy link
Member

You'll see the tab rendered in single column, when it should be tabWidth columns.

I found this assumption is actually incorrect and it's how a tab works. You can verify by

  • Copy a hard tab
  • Create an untitled file
  • Type in three spaces
  • Paste the hard tab
  • You can see the tab is rendered in the width of tabWidth - 3

@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug editor-rendering Editor rendering issues
Projects
None yet
Development

No branches or pull requests

2 participants