Home » Php » php – phpstorm next-line braces

php – phpstorm next-line braces

Posted by: admin July 12, 2020 Leave a comment


I recently started using PHPStorm. Now I have a simple question but I cant find the answer.

So, I want that the braces of funtions, classes etc. go automatically in the next line, like:

function xyz(){  

will be

function xyz()  

without pressing CTRL + ALT + L all the time. Is there a way to do it?
I appreciate any answers.

How to&Answers:

You probably want the setting (this is the way to get there on OSX at least):

  • Preferences > Editor > Code Style > PHP
    • Tab: Wrapping and Braces
    • Braces placement
      • Other: Next line