Indentation of if statements where condition spans multiple lines

Due to code-sniffer rules on our project, multi-line function calls have to start on their own line.

So when a multi-line function call is the condition of an `if` statement, it formats like


However I would like it to format like 

Is it possible to do this?

It looks like because there is no continuation as the first line in the `if (` is blank it is not getting indented. 


Comment actions Permalink

I am afraid there is no special option that will allow you to get the formatting in the way you need.

Just a small notice -- the current indent (in parameter lines) is considered as continuation indent already. It could be easily checked by changing the "Continuation indent" value from "4" to, let's say, "8".

Comment actions Permalink

Ok thanks Vasily.



Please sign in to leave a comment.