Code formatting - slash in self closing tags Permanently deleted user Created April 06, 2019 10:33 Hello everyone Shame to ask this, how can I get <br /> <img /> self closing tags in html files. I tried in xhmtl files, it works well. Any help is greatly appreciated!
Not sure I follow you... Is it about Emmet (i.e. generating tags when entering name and hitting Tab)?
In HTML5 tags like <br> or <img> do not require a "/ " for closing them like "<br/> " (http://www.w3.org/TR/html5/text-level-semantics.html#the-br-element,
http://www.w3.org/TR/html5/syntax.html#void-elements).
However, you can easily change current behavior in "Settings | Editor | Live Template | Zen Html | br/img"
Please also feel free to vote for https://youtrack.jetbrains.com/issue/WEB-16193