Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Sublime Text Help Needed About A Feature

As Dreamweaver auto close tags when when complete opening tag ,,,, means i write / select <a> and Auto add </a> .....

so how this type of tag closing and completion can be enabled in sublime with any plugin or command ... please post complete method, thanks

5 Answers

When typing a tag, Sublime Text has tab completion. Say you got to this point in typing a div tag: <div you could then hit tab and it should complete it to <div></div>

it is by autocomplete list ,,,,, but can i make it to complete auto without pressing anything

Kang-Kyu Lee
Kang-Kyu Lee
52,045 Points

in Sublime Text closing tag can be done by pressing tab key after typing the first part of each tag. for example

<tag + tab or simply tag + tab

can i make it to complete tag without pressing anything

but there is no plugin that will automatically complete tag without pressing shortcut keys ....... like in dreamweaver

Andrew Chappell
Andrew Chappell
12,782 Points

Sublime text has lots of packages at: https://sublime.wbond.net

I don't know of any specific auto complete for tags but I'm sure there is one or something similar.

I personally use one called Bracket highlighter which will highlight opening and closing brackets, which makes your code easier to troubleshoot.

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Simpsons Tanging

In Sublime, you can just type for name of the tag + tab to get full autocomplete. For example, if you type div then press tab you get

<div></div>

The cursor is placed between the tags. This is even better than Dreamweaver, in that you only need to type 4 characters -- div + tab -- instead of 5 characters -- <div> -- to get the autocomplete.