Search code examples
coding-stylephpstormreformatting

PHPStorm Code Style: PHP in HTML


Is there a way to prevent PHPStorm 6 adding spaces after <?= and before ?> in constructions like

<a href="<?=$variable?>">blah</a>

during Reformat Code (Ctrl+Alt+L) ?

Suddenly, it inserts spaces

<a href="<?= $variable ?>">blah</a>
            ^         ^
            |  here   |  

Googling and digging Settings dialog didn't help.

Thanks.


Solution

  • File->Settings->Editor->Code Style->PHP->Spaces->Within