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

[html] Format document create tab identities #13563

Closed
baio opened this issue Oct 12, 2016 · 6 comments
Closed

[html] Format document create tab identities #13563

baio opened this issue Oct 12, 2016 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug html HTML support issues verified Verification succeeded
Milestone

Comments

@baio
Copy link

baio commented Oct 12, 2016

  • VSCode Version:
    1.6
  • OS Version:
    Windows 10
    Steps to Reproduce:
  1. Open html file in editor
  2. Ctrl + Alt + F to format

Some lines now have tab identities instead of spaces, though settings have indents using spaces.

@jrieken jrieken assigned aeschli and unassigned jrieken Oct 12, 2016
@Maximaximum
Copy link

I'm having this issue too. Seems to apply only to html files.
Please also see the discussion here: editorconfig/editorconfig-vscode#78 (comment)

@Maximaximum
Copy link

Please also note that this issue appeared only after update to VSCode 1.6.0

@aeschli
Copy link
Contributor

aeschli commented Oct 12, 2016

Can you add a small code example that shows that?
My guess is that this is a the same as in #12978.

@Maximaximum
Copy link

What kind of code do you need? You mean a sample html file that, when formatted, results with the issue described?

@SEGEEK
Copy link

SEGEEK commented Oct 12, 2016

Hi @aeschli, this sample code will do it as I demonstrate below (note I have removed all of my extensions), you can see that spaces:2 is set in the status bar but when I format it converts the spaces to a tab

format-to-tab2

Here is the code so you can try to reproduce it:

<body>
  <div>Should be indented with spaces</div>
</body>

@aeschli
Copy link
Contributor

aeschli commented Oct 14, 2016

Thanks a lot!

@aeschli aeschli added the html HTML support issues label Oct 14, 2016
@aeschli aeschli added this to the October 2016 milestone Oct 14, 2016
@aeschli aeschli changed the title Format document create tab identities [html] Format document create tab identities Oct 14, 2016
@aeschli aeschli added the bug Issue identified by VS Code Team member as probable bug label Oct 27, 2016
@octref octref added the verified Verification succeeded label Oct 27, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
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 html HTML support issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

6 participants