Reputation: 105497
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() {
}
Upvotes: 18
Views: 3619
Reputation: 164
Upvotes: 0
Reputation: 165148
Settings/Preferences
Editor | Code Style | PHP | Wrapping and Braces
Braces placement | In function declaration = End of line
Upvotes: 30