Wired wrapping of long lines

I try to have PhpStorm set up so that a long (120+ chars) line like 

$Connections = $this->getFullConnections($MainSegmentConnections, $FirstMileRouteSegment, $LastMileRouteSegment);

Gets formatted like the following

$Connections = $this->getFullConnections(
$MainSegmentConnections,
$FirstMileRouteSegment,
$LastMileRouteSegment
);

But what PhpStorm does is

$Connections = 
$this->getFullConnections($MainSegmentConnections, $FirstMileRouteSegment, $LastMileRouteSegment);


Does someone know which code style option I have to set to have it like this?

 

Thank you!

1 comment
Comment actions Permalink

Hi there,

Please provide a code sample (a full file where it can be tested) + export of your Code Style (in XML format, not JSON) -- it usually easier to locate wrong setting that trying to figure out what you have to change in default.

Just share those files via Google Drive or alike.

P.S. You can also try create a new Code Style entry and apply"Set from -> PSR-2" to see the difference between yours and that one (that should be doing such formatting)

0

Please sign in to leave a comment.