Code Style to collapse empty HTML tags?

Can I get WebStorm to automatically  collapse my empty HTML tags on reformatting? I only found the intent (light bulb), so I can collapse them manually.

 

<UserRolesDropdown></UserRolesDropdown>

 

=>

 

<UserRolesDropdown/>
1 comment
Comment actions Permalink

Can't be done on Code | Reformat Code..., as this is not about code formatting. You can only do this using Collapse empty tag intention

0

Please sign in to leave a comment.