Is there a shortcut to close the HTML tag that you just opened in sublime text 2?
I just discovered a click
For Mac: Alt + Command + .
For PC: Alt + .
For Linux: Alt + .
will complete the tag that you just opened.
eg. you print
<div>
Clicking a shortcut will give you
</div>
You can simply enter the type of tag you want to insert and click on the tab!
<strong> Examples:
div
<div></div>
a
<a href=""></a>
Enter div and then Tab. It automatically expands to sublime text 2.
I donβt know where other people got their shortcuts from. In my version of Sublime Text 2, this is ALT + COMMAND + . (Mac OS X)
Ctrl + Shift + < which is Edit> Tag> Close Tag
UPDATE
After looking at the Rich answer, I remembered that I changed the shortcut for this command.
Install the HTMLAttributes package here, or install it through Settings> Browser Package> Install Package