Home Download Buy Blog Forum Support

HTML Optional Code completion request

HTML Optional Code completion request

Postby Lamonte on Tue Dec 24, 2013 2:06 pm

When closing an html tab in sublime text 3 you can simply do </ and then the html will attempt to close the element. For DIV elements it would be wonderful if there was an option to add a comment block after the close tab with the div class or id like so:

<div id="example_id">
</div><!-- end #example_id -->

or

<div class="example_class">

</div><!-- end .example_class -->

Think this is just a cleaner way of writing HTML and allows the developer to not have to manually type it out every time. Going to figure out a way to make this a plugin regardless if this can't be done.
Lamonte
 
Posts: 5
Joined: Tue May 01, 2012 1:52 am

Re: HTML Optional Code completion request

Postby BennyB on Tue Nov 04, 2014 10:59 pm

Any luck on this front? I haven't found anything and that would be incredibly useful.
BennyB
 
Posts: 4
Joined: Fri Mar 14, 2014 6:19 pm

Re: HTML Optional Code completion request

Postby wesbos on Mon Nov 10, 2014 5:51 am

Perhaps you can change your workflow to not even have to type the closing tag - you can use Emmet to close them for you.

With emmet filters, you can pipe to `c` to allow for automatically appended comments!

Image
wesbos
 
Posts: 29
Joined: Sun Dec 23, 2012 6:17 pm
Location: Hamilton, Ontario, Canada


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests