Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hi, I'd like to find a plugin for Sublime Text 2 for auto-closing html tags

What I really want for the method of the auto-closing is that when I input

<tag>

then becomes

<tag></tag>

.

The "tag" plugin of the Sublime Text 2 is like the Dreamweaver style, not the Coda 1 Style.
Is there any plugin or method, or a new text editor that can do this?

like image 933
Suhjin Park Avatar asked Jan 20 '13 10:01

Suhjin Park


People also ask

How do I automatically close a tag in Sublime Text?

But there should be some built into sublime. For example, as you start to type <div> , you should see a drop down box with matching snippets. Hit Tab or Enter to pick one and arrow keys to go up or down in the list. For html tags, it will automatically adds the closing tag and puts the cursor in between them.


1 Answers

It works out of the box, you just don't type in '<' nor '>'. Simply enter any HTML tag name (a, html, body, div, img, ...) and press 'Tab', it will auto-complete and so div after you press 'Tab' will become <div></div>

like image 107
geekbeing Avatar answered Sep 23 '22 02:09

geekbeing