[Php Code Style] Keep left bracket and the closing php tag on the same line.


Does PhpStorm has an option in Code Style to keep the php closing tag on the same line with the left bracket like this?

global $xxx;
if ( $xxx >= 2 ) { ?>
     <div>some html here</div>
<?php }

Instead of :

<?php global $xxx; if ( $xxx >= 2 ) {      ?>      <div>some html here</div> <?php }

Comment actions Permalink

Left bracket placement: Settings (Preferences for Mac OS) | Code style | Php | Wrapping and braces | Braces placement -> "End of line".
There is no such option for closing tag, fee free to file a feature request: http://youtrack.jetbrains.com/issues/WI#newissue=yes .

Comment actions Permalink

Thank you! I'll give it a try!


Please sign in to leave a comment.