I recently started a new project in PHPStorm, but noticed that none of my HTML elements are being auto closed like in my other projects.
If I type
<div>
the editor autoloads the
</div>
How do I turn this feature back on?
File > Settings > Editor > Emmet > HTML
Under Filters Enabled By Default tick Comment Tags.
You'll then find if you use Emmet's syntax, for example:
.test#test
TAB
It'll output:
<div class="test" id="test"></div>
<!-- /#test.test -->
Yes you can do this by setting your PHPstorm
Go to PHP Storm -> File -> Setting -> Editor -> Smart Keys -> XML/HTML
Check all or what you want, then Press Ok.It is done.
Reference : http://www.jetbrains.com/phpstorm/webhelp/editor-smart-keys.html
If you type div
and then press Tab, then it will auto-complete for you. PHPStorm has emmet built in in verisons 6 and 7 as far as I know.
In PHPStorm Version 2017.3 you can change this setting at:
File > Settings > Editor > General > Smart Keys > XML/HTML > Insert closing tag on tag completion