Last Updated: February 25, 2016
·
8.015K
· dannygarcia

Tab-complete HTML in Sublime Text 2

Here's a small, built-in, hidden feature in Sublime Text 2.
You can tab-complete simple HTML tags with a single Class or ID attribute.

Class

div.col<tab>

Results In

<div class="col">|</div>

ID

div#obj<tab>

Results In

<div id="obj">|</div>

Unfortunately, this built-in feature is limited to just a single Class or ID attribute. For something more powerful try the ZenCoding plugin: http://www.youtube.com/watch?v=Q_D7X1Y8uOA

2 Responses
Add your response

Any ideas on how someone adds two classes while using this technique?

over 1 year ago ·

Thanks it help me,
I find it useful

over 1 year ago ·