How to keep annotations on the same line when formatting PHP code

290 Views Asked by At

I have some custom annotations which should go exactly before a variable value

$var = /* @text */'Some translatable text';

After formatting it becomes

$var = /* @text */
'Some translatable text';

How to disable inserting new lines after the annotations?

1

There are 1 best solutions below

0
Vlad Luchansky On BEST ANSWER

Unfortunately there's no way to do this at the moment. Feel free to submit a feature request at http://youtrack.jetbrains.com/issues/WI#newissue=yes.