How to split long strings in PhpStorm / IDEA when use auto-formatting

Viewed 104

I have a long string like the one below, that contains few variables

$str = "Lorem ipsum dolor sit amet, $var1 adipiscing elit. Curabitur sed $var2 nunc. Nunc elementum in felis et venenatis. $var3 quis finibus sem, consectetur ornare leo. "

I want this line to be broken into a few lines when I format it automatically (CTRL + ALT + L).

0 Answers
Related