How do I enable smart HTML tag indenting in Sublime Text 3?

html, indentation, sublimetext2, sublimetext3, tags

Solution

You can install "Tag" plugin using package control. This question suggests the plugin has issues, but I haven't noticed any that would be a problem.

Problem

I don't remember exactly when this functionality stopped working, but I always had Sublime Text do auto indenting properly. For example, if I type `<div>` and then press Enter, the caret would automatically make a tab on the next line. Similarly, when I closed tags, they would automatically un-indent by one tab (such as when pressing alt+. in order to close a tag). This functionality seems to have disappeared, at least in ST3, and I can't find any way to get it back. Anyone have any ideas? Edit: it might be useful to add that PHP auto-indenting works just fine, such as making indentation between brackets.

Original source

Related problems