In Sublime Text how do you short-cut writing code

sublime-text-2

My apologies but I do not know what its called, if this has been asked or what Stack site this is best suited for. I've seen several videos on how people use Sublime to create quicker tags and I would like to learn the proper way to do this if there is any documentation or what I can do quicker in my coding.

In several videos I see people doing things like:

div.class and it will create <div class="class"></div> after tab.

Best Answer

The feature you describe is part of Sublime Text 2 out of the box. Make sure your document uses HTML syntax (View » Syntax » HTML).

Type foo.bar, press Tab, and you'll get <foo class="bar"></foo>. There's also foo#bar (for id instead of class). Both are implemented in Packages/HTML/html_completions.py.