Remove tabs before <?php and ?>

When the opening PHP tag <?php or the ending PHP tag ?> is on a line by itself, I would like it to ALWAYS be all the way to the left, ie. not indented. Is there a way to accomplish this?

0
1 comment

Not really. There's a setting for indenting code within PHP tags, but not for the tags themselves.
It's a valid feature request, although to be frank, I don't think it's gonna gain many votes, so not sure it makes sense to submit it. https://youtrack.jetbrains.com/newIssue?project=WI

By the way, you can utilize Find in Path with regexp in order to remove whitespaces in front of the tags.

0

Please sign in to leave a comment.