ilex01
2 months ago

Add a new line before and after the <div> tag in PhpStorm

Posted 2 months ago by ilex01

Hi!

Here is my current HTML code in PhpStorm:

<body>
    <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</div>
    <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</div>
</body>

When I Reformat Code, I would like this:

<body>
    <!-- Empty line here in PhpStorm -->
    <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</div>
    <!-- Empty line here in PhpStorm -->
    <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</div>
    <!-- Empty line here in PhpStorm -->
</body>

I've been looking for hours in the HTML Code Style, but can't seem to make it work.

Thank you for your help.

Please sign in or create an account to participate in this conversation.