Settings/Preferences
Editor | Code Style | PHP | Wrapping and Braces
Braces placement | In function declaration = End of line
PhpStorm - parenthesis formatting on the same line
-
15-06-2023 - |
Question
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() {
}
Solution
OTHER TIPS
- Settings/Preferences
- Editor | Code Style | PHP | Braces Placement
- In function declaration = End of line
- Place braces for empty functions/methods on one line
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow