Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[HTML] Indent Issue #915
I'm seeing an issue in Build 3129 that I wasn't seeing prior to updating from beta build 3126. I have attached a small GIF showing the issue (which I will then describe):
Here's the order of operations:
Note how the indent / unindent jumps around on the second line of item 2. I type the letter a, followed by a backspace, then b followed by another backspace, etc. I'm not sure if there's a plugin at work here or not, but I know this behavior wasn't present in the beta build.
Below are my relevant indent preferences, in case it helps. I'm seeing this in Windows, HTML syntax, tab size of 4. I also have Emmet installed, which may have a bearing on this.
I've noticed an indent issue with HTML as well, which I assume is related. As noted here, when closing a tag, the indent jumps backwards an indentation level even if the cursor is already at the appropriate position.
As a contrast, in build 3126 closing a tag does not adjust the indent level in this case.
The settings in use here are the same as the OP, with theexception of
It looks like the problem here is that the rules that increase indentation and the rules that decrease indentation don't currently sync up nicely:
Therefore, to fix this, we can change it so that: