Cannot find wrap function call arguments if multiline?
Answered
PhpStorm 2018.2.3.
I'd like to have expected formatting from:
$foo->bar(1, 2,
3);
to
$foo->bar(
1,
2,
3
);
It means if it becoming a multi-line arguments call, each argument should be on a separated line.
Is this configuration gone?
Now we have only these options, but they cannot cover such case. It was definitely working before.
Please sign in to leave a comment.
Yeah, correct.
That's working! Thanks!
Hm, those options exactly are working fine in 2018.2.5:
Edit: I got this pop up via Find Action (Ctrl+Shift+A) > Adjust code style settings
I don't want to change the Code styles. How can i do this otherwise, maybe as a refactor of some type plugin?
To be honest, I don't really get your request. The whole purpose of Code Style settings is to change the way the code formatted.
How exactly do you see it if it's not implemented with the Code Style?
Hi,
I can imagine formatting intentions like "Format call as multi line", "Format call as one line". Each should be available if current formatting is not matching the intention result, so for example for the first code example given in the original post both options should be available.
Actually I found this thread because I was looking for such feature.
Oh, I finally got the request, thank you. This feature is introduced in 2019.2 and called Split
Split comma-separated values into multiple lines
/Join comma-separated values into a single line
, the actions can be invoked with Find Action.