Klyner
Klyner

Reputation: 4163

How to change Code style for adding space around parameter within an IntelliJ environment?

I accidentally changed something within the code style in my PhpStorm. Now, when I press Ctrl + Shift + F for formatting, a space is placed in front and after parameters in a method call within a function.

enter image description here

How can I change this back?

Upvotes: 2

Views: 1541

Answers (2)

Lucas Carnevalli
Lucas Carnevalli

Reputation: 62

In tab "Spaces", option "Within", desactive "Method declaration parentheses".

Upvotes: 0

Cat
Cat

Reputation: 121

Go to Editor > PHP > Spaces > Within, see if "Function declaration parantheses" or "Function call parantheses" are checked.

Upvotes: 4

Related Questions