emmetio / sublime-text-plugin

The essential toolkit for web-developers
https://emmet.io
MIT License
253 stars 29 forks source link

Elements with Self-closing tags #159

Closed NicholasJohn16 closed 3 years ago

NicholasJohn16 commented 3 years ago

Is there a way to generate elements with self closing tags? For instance, expand <Player/ into <Player/> instead of <Player></Player>.

sergeche commented 3 years ago

You can add slash at the end of element, e.g. Player/

NicholasJohn16 commented 3 years ago

I've tried that, but it doesn't seem to work. It just completes to <Player>.

sergeche commented 3 years ago

Check out this preference: https://github.com/emmetio/sublime-text-plugin/blob/master/Emmet.sublime-settings#L151