Sublime text auto indent install#
Now package handling has been made more difficult for ST3, but luckily you can just add the files to your %AppData%/Roaming/Sublime Text 3/Packages folder and they overwrite default settings in the install directory. My solution was to find the Miscellaneous.tmPreferences file from Sublime Text 2 (found under %AppData%/Roaming/Sublime Text 2/Packages/HTML) and copy those settings to the same file for ST3. This was bugging me too, since this was a standard feature in Sublime Text 2, but somehow automatic indentation no longer worked in Sublime Text 3 for HTML files. Then re-zip the file as HTML.sublime-package and replace the existing HTML.sublime-package with the one you just created.Ĭlose and open Sublime Text 3 and you're done!
bracketIndentNextLinePattern )Open Miscellaneous.tmPreferences and copy this contents into the file name Miscellaneous scope text.html settings decreaseIndentPattern (?x) Go to C:Program FilesSublime Text 3Packages extract HTML.sublime-package as if it is a zip file to a directory. So when you finish a tag, it automatically indents for the next element. To be clear, this is to re-introduce previous auto-indent features when HTML files are open in Sublime Text. This is an adaptation of the above answer, but should be more complete.