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 trialSimpsons Tanging
Courses Plus Student 1,086 PointsSublime 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
notf0und
11,940 PointsWhen 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>
Kang-Kyu Lee
52,045 Pointsin 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
Simpsons Tanging
Courses Plus Student 1,086 Pointscan i make it to complete tag without pressing anything
Dave McFarland
Treehouse TeacherYou should check out this blog post: http://www.granneman.com/webdev/editors/sublime-text/top-features-of-sublime-text/auto-completion-in-sublime-text/
Simpsons Tanging
Courses Plus Student 1,086 Pointsbut there is no plugin that will automatically complete tag without pressing shortcut keys ....... like in dreamweaver
Kang-Kyu Lee
52,045 Pointshttp://sublimetext.userecho.com/topic/48973-auto-close-tags-after-you-type/ It's unclear this is still true (or outdated) for the Tag plugin...
Andrew Chappell
12,782 PointsSublime 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
Treehouse TeacherIn 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.
Simpsons Tanging
Courses Plus Student 1,086 PointsSimpsons Tanging
Courses Plus Student 1,086 Pointsit is by autocomplete list ,,,,, but can i make it to complete auto without pressing anything