Autocomplete and autoclose HTML tag without typing "<" at the beginning

So... I used Atom to this date and I wanted to try out phpstorm and I have an issue with HTML tags.

If you want to auto complete HTML tag, you have to type for eg. "< d" than when autocomplete menu appears, press enter -> it autocompletes "< div" and if you want to close it, you have to type "> " and boom you have "< div >< \div >".

But in Atom you can just type "di" and it shows you that autocomplete menu and if you press enter it automatically autocompletes and autocloses it to "< div >< /div >".

Is it possible to achieve it just like in Atom? Just without the need of typing that "< " at the beginning?

Edit: I did put spaces after < because this forum deletes HTML tags, so you can't see any examples

2 comments
Comment actions Permalink

Just wondering if you are already familiar with Live Templates feature:

https://www.jetbrains.com/help/phpstorm/using-live-templates.html

 

For example, you may create a Live Template, name it "di" and use Autocomplete for inserting it.

0
Comment actions Permalink

Emmet for the rescue here. https://docs.emmet.io/

Most if not all of the abbreviations are implemented via Live Templates.

Same on SO: https://stackoverflow.com/questions/55259681/phpstorm-autoclose-and-autocomplete-html-tags-without-typing-at-the-beginn

0

Please sign in to leave a comment.