"over-indenting" of Blade directives on reformat

已回答

In a blade.php file I have an instance of

@if (condition)
<div>content1</div>
@else
<div>content2</div>
@endif

But hitting the Reformat Code command, PHPStorm insists on formatting this so that each blade directive gets increasingly indented.

I've tried all sorts of combinations of tab/indenting settings (of which there seem to be thousands), and tried resetting them to the default, too. Nothing works. What do I have to do to gain control over this formatting and stop PHPStorm from "over-indenting" (is that even a word?) Blade directives?

 

0

How would you like it to be indented?

0

Thanks! That's a known problem: https://youtrack.jetbrains.com/issue/WI-26903. Please vote for it or comment it with your example in order to  increase its priority & to get notified about its updates. 

0

Thanks. Dmitry Tronin. I suppose one could call it "long known and apparently forgotten/ignored problem".

0

Yeah, that's not a prioritized task atm.

0

请先登录再写评论。