Previously, after creating any tag in ST3, for example div + TAB, the cursor became in the center

<div>|</div> 

and if after that you press ENTER, it becomes like this:

 <div> |(тут курсор) </div> 

after updating ST3, pressing ENTER on the closing div is simply transferred to a new line like this:

 <div> |</div> 

How to do what would have been like before?

Emmet and Tag plugins installed

  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky

1 answer 1

Preferences -> Key Bindings-User

 { "keys": ["enter"], "command": "auto_indent_tag", "context": [ { "key": "setting.auto_indent", "operator": "equal", "operand": true }, { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, { "key": "selector", "operator": "equal", "operand": "punctuation.definition.tag.begin", "match_all": true }, { "key": "preceding_text", "operator": "regex_contains", "operand": ">$", "match_all": true }, { "key": "following_text", "operator": "regex_contains", "operand": "^</", "match_all": true }, ] } 
  • Thanks, just checked. This is exactly what you need! - l2banners