PHPstorm MySQL code style AND on new line
已回答
Hi!
At some point I managed to make PHPstorm put AND's in mysql JOINs on a new line, like this:
FROM tabl1
LEFT tabl2 ON css_omschrijving = ats_omschrijving
AND ats_deleted_at IS NULL
Now it's not working anymore, ANDs are placed on the same line like this:
FROM table1
LEFT JOIN table2 ON css_omschrijving = ats_omschrijving AND ats_deleted_at IS NULL
I can't find the right setting to make this work again. Can anyone tell me which setting this is?
Thanks a lot!
请先登录再写评论。
Spent some time playing around with SQL Code Style setting but without any luck.
Could you please share a full query? Is it a .sql file or it is an injection in PHP/another language?
Yes, here's one that was formatted with ctrl + alt + L:
It's a .sql-file
Hello,
Please take a look at my screenshot, these settings are in 'FROM clause' section.
Hi Yuriy! Thanks for looking into this.
I have tried the exact same settings but somehow the AND's are not put on a new line; are there any other setttings I'm missing? Can you maybe export your settings?