Sublime Forum

Emmet formatted linebreak not working

#1

Recently when hitting enter between any html tag, it doesn’t give me the indented new line like it used to and simply inserts a “\n” and leaves the cursor behind the closing tag.

Expected:

<p>
    |
</p>

Result:

<p>
|</p>

I tried overriding the Emmet keybinding and noticed that it will work when I remove the following context:

{
    "operand": "meta.scope.between-tag-pair.html, meta.scope.between-tag-pair.xml", 
    "match_all": true, 
    "key": "selector"
},

Which doesn’t make sense since I am using html tags. Any idea what I can look to see that something was overridden?

0 Likes

#2

please see Auto-Indent HTML when press enter

basically there was a change to the html syntax definition which inadvertantly broke this, but it will be fixed in the next dev buikd

0 Likes