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

Pressing enter before a closing tag that was just created indents it in a level #12971

Closed
bgashler1 opened this issue Sep 29, 2016 · 3 comments
Closed
Assignees

Comments

@bgashler1
Copy link
Contributor

bgashler1 commented Sep 29, 2016

  • VSCode Version: Insiders
  • OS Version: Windows 10

Regarding test plan item #12100

Steps to Reproduce:

  1. Type <div and press tab repeatedly until it completes it for you to have an opening and closing tag: <div></div>
  2. Your cursor will be between this pair of tags. Now hit enter/return to send the closing tag to the next line.
  3. Note that the newest build of Insiders puts this tag indented in a level, whereas stable more correctly has it at the same indent level.

Insiders
insiders2 add div

Stable
stable - add div

Sorry for the motion sickness of watching these 2 gifs side-by-side 🌊

@bgashler1 bgashler1 added the bug Issue identified by VS Code Team member as probable bug label Sep 29, 2016
@bgashler1 bgashler1 added this to the September 2016 milestone Sep 29, 2016
@bgashler1
Copy link
Contributor Author

This does not seem to affect Razor cshtml :)

@dbaeumer
Copy link
Member

The problem seems to be the superfluous >. If it is not there indentation works correctly.

Discussed with @egamma and this seems to be emmet related.

@egamma
Copy link
Member

egamma commented Sep 29, 2016

duplicate of #12975

@egamma egamma closed this as completed Sep 29, 2016
@egamma egamma removed this from the September 2016 milestone Sep 29, 2016
@egamma egamma removed the bug Issue identified by VS Code Team member as probable bug label Sep 29, 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
None yet
Projects
None yet
Development

No branches or pull requests

4 participants