Shakeel Ahmed Shakeel Ahmed - 10 months ago 55
PHP Question

PHPStorm >> Reforrmat code deletes PHP code

I am using PHPStorm with mix HTML/PHP..

My codes are

<div id="tab2" class="display-none">
<?php include_once "profile/permissions.php"; ?>

When I use Ctrl+Alt+L for Reformat code then PHP codes remove auto. How can I stop this.

Codes after Reformat.

<div id="tab2" class="display-none">


I can't understand PHPStorm's problem.

Answer Source

Strange but problem is solved with this change...

<div id="tab2" class="display-none"><?php include_once "profile/permissions.php"; ?></div>

Just removed lines between <?php and <div id="tab2" class="display-none">