简体   繁体   中英

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

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?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM