Search code examples
coding-stylephpstorm

How to configure PhpStorm short tags indentation


Here is the indentation that PhpStorm will generate for this code:

<?php if (count($foo) > 0) : ?>
<div>...</div>
<?php else : ?>
<p>...</p>
<?php endif; ?>

How can I configure it to be simply:

<?php if (count($foo) > 0) : ?>
    <div>...</div>
<?php else : ?>
    <p>...</p>
<?php endif; ?>

Solution

  • I'm afraid it's not possible right now to indent code this way, please submit a request to YouTrack.