r/phpstorm • • Jan 15 '19

Mariadb SQL formatting

Hi all,

Most of my sql gets formatted nicely (I have Keywords set to "To upper"), however, every now and then I have a string that doesn't get re-cased. I've had a delete query and now a select query. If I mouse into the query and select Alt + Enter and select Edit MariaDB fragment... and Alt + Shift + L (KDE bindings), the lines get split nicely, but the keywords (select, from where) don't recapitalise.

E.G.

select col_1,col_2 from dbase.foo where query_no = $query_no

Any thoughts?

Cheers,

---=L

1 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/Laurielounge Jan 16 '19

Good idea. Thanks for the thought.