Reputation: 197
I want to format a long string of text in PhpStorm:
$query = echo 'This is a sample code'
When I press Enter to go to the next line or use Reformat Code (Ctrl+Alt+L) to wrap long text, I would like the code to appear like this:
$query = echo 'This is
a sample code';
not:
$query = echo 'This is a
sample code'
Upvotes: 2
Views: 455
Reputation: 6752
You can do it, for example, like this:
$query = ''
.'This is'
.' '
.'a sample code';
This is a bit tricky, but I also do not know how to do this in the other way.
Upvotes: 1