Reputation: 388
I'm using PhpStorm 2016. I've come from the Visual Studio C# world, and I've became used to the {}
's like this:
function foo()
{
code
}
but in the PhpStorm by default, its like this:
function foo() {
code
}
Is there a configuration on PhpStorm so that I can get my {}
's like my first example? (the Visual Studio C# one)
Upvotes: 0
Views: 26
Reputation: 165088
Settings/Preferences | Editor | Code Style
PHP | Wrapping & Braces
Braces placement -> In function declaration = Next line
https://www.jetbrains.com/help/phpstorm/2016.2/code-style-php.html#d532466e260
Upvotes: 2