xi006q
Last Updated: February 25, 2016
·
10.88K
· jmarizgit
527657 350954588303809 1195162128 n

Sublime Text 2: close tags shortcut

Before use Sublime Text 2 on OSX I used Smultron (another impressive lightweight editor). Well, Smultron has this easy to use Tag completion shortcut (Command + t) and today I was wondering how to do the same in Sublime.

Playing around I discover that you just need to use the below shortcut.

on mac:

Option + Command + .

on windows:

Alt + .

Done, your tag is closed.

Say Thanks
Respond

6 Responses
Add your response

387

In Windows it's Alt+.

over 1 year ago ·
389
527657 350954588303809 1195162128 n

@avenger7x thanks I will correct that.

over 1 year ago ·
5989
D42a7264714dee5006b9c99d2567a320

It's better to juse install the Tag package and have your html/xml tags close automatically when you start to type </. The package also provides some other features

over 1 year ago ·
5999
5d59040e82b5fd59f9fdd8671b99a1c5

You should try emmet, it's just awesome

over 1 year ago ·
11860
Profile200

As far as I can tell, ST2 has default support for tag autocompletion by using tab. Example: type div, then hit TAB, and you get <div></div>. It works beautifully on my ST2 install (osx) without any additional packages.

over 1 year ago ·
13605
933646d7afd4e864691bd26a57cc89f9

Now in sublime 2 version 2.0.2, build 2221 - it`s:

For Mac: Alt + Command + .<br />
For PC: Alt + .<br />
For Linux: Alt + .

over 1 year ago ·
Awesome Job

E20ce6a2 ca1f 11e7 82be 7f617c8310c9
SENIOR DEVELOPER (m/w)
·
Berlin, Köln, Hamburg, München
·
Full Time