Skip to content Skip to sidebar Skip to footer

Sublime Text Isn't Indenting Properly With Html

Related but not identical question: Sublime Text indentation behavior. I have seen many videos in which after the autocompletion of an HTML tag, pressing enter automatically result

Solution 1:

Try installing the Emmet plugin, previously known as Zen Coding. It allows you to enter HTML using a CSS selector-like syntax, so for example

html>body>div.main

and pressing Tab gives you

<html><body><divclass="main">|</div></body></html>

where the | is the cursor position. More importantly, for your present question, just typing bodyTab gives you

<body>
    |
</body>

just like you were looking for. See the Emmet docs for all the details.

Post a Comment for "Sublime Text Isn't Indenting Properly With Html"