Sublime Forum

HTML indentation issue

#1

I am finding writing HTML to be a pain in Sublime because it’s indentation is inconsistent.

When coding within the tags, it auto-indents the cursor, then if I code an opening

and hit enter, the cursor doesn’t indent on the next line, and then if I write the closing
tag, it goes back one tab space, therefore not being aligned with it’s opening tag.

I have read that using ZenCoding can help, but it doesn’t change this behaviour, and also read that auto-closing tags should be used, which I don’t agree with. That should be a user preference and if I chose to write closing tags, I shouldn’t have to click around the page correcting indentation errors.

Is there any fix for this?

0 Likes

#2

Look at the post above on this issue. I fixed it by removing the html5 package.

0 Likes