Last Updated: October 11, 2021
· hkdobrev

Close matching tag with Sublime Text

Alt + . to close a matching tag.

<a>link here


<a>link here</a>

Sublime Text knows which tag to close and clicking the shortcut repeatedly would close more and more tags in the order they have been opened. And there is a great shortcut for that!

6 Responses
Add your response

nice one - thx 4 sharing!

over 1 year ago ·

The Tag package for Sublime Text, provides many HTML tools, and one of the most interesting ones is the Close Tag, that automatically closes the current tag by just typying </.

Example: <a>something</

over 1 year ago ·

On a mac it's Alt + Cmd + .

over 1 year ago ·

@leech exactly ...

over 1 year ago ·

Nice one. Thanks for sharing

over 1 year ago ·

Useful, thanks for sharing this!

over 1 year ago ·