Sublime 2, how to automatically close HTML tags and place the cursor inside the tag

I am trying to figure out how to get Sublime 2 to create the following behavior:

Type of

<strong 

then by typing >

Sublime then immediately prints

 <strong></strong> 

And then your cursor will be placed inside the tag.

I feel that this was done automatically no more than a few months ago, or maybe I just hallucinated or used a different package ... but no matter if there is a parameter or script, I can build that will execute this tag behavior, that Aptana gets 100% right, but for some reason another text editor cannot grab hold of?

+8
html sublimetext2 sublimetext
source share
2 answers
  • CTRL + SHIFT + W (on Mac) / ALT + SHIFT + W (on Windows)
  • strong type
  • Tab
+7
source share

In order to get the HTML auto-populate in sublime text 2, I performed the following step: -

open sublime -> view -> syntax -> HTML

Hope this will provide you with the automatic completion of the sublime.

+4
source share

All Articles