Sublime Forum

HTML Optional Code completion request


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:


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.



Any luck on this front? I haven’t found anything and that would be incredibly useful.



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!