Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm - parenthesis formatting on the same line

Tags:

phpstorm

How to configure PhpStorm to place parenthesis on the same line when formatting is triggered (Ctrl + Alt + L)? It currently formats in this way:

function()
{

}

and I want it to format like that

function() {

}
like image 971
Max Koretskyi Avatar asked Mar 15 '14 15:03

Max Koretskyi


1 Answers

  1. Settings/Preferences
  2. Editor | Code Style | PHP | Wrapping and Braces
  3. Braces placement | In function declaration = End of line
like image 86
LazyOne Avatar answered Oct 20 '22 19:10

LazyOne