I have started creating my own template in Windows > Preferences > Editors > HTML > Templates, for example for the {% code %} and {% endcomment %} tag. Of course, this is not exactly what you want, because it is not dynamically, and that is exactly where it would help most.