Lukmo
Lukmo

Reputation: 1688

Close HTML tag on when typing ">" in sublime text

I'm looking for a way to close HTML tags but when pressing >. I've found a lot of answers like typing tab each time (really ?) or when typing </ after.

What I'd like is to type : <div and when I press > it would output automatically <div>X</div> And place the cursor on the X.

Upvotes: 1

Views: 93

Answers (1)

messivanio
messivanio

Reputation: 2311

You can create a snippet, or use one of these.

See Sublime Text Snippet Reference

Upvotes: 1

Related Questions