How to set the settings in DataGrip SQL code style editor so that the join conditions are on separate lines?

62 Views Asked by At

I need some help configuring SQL editor templates. Now my code after formatting is the following:

left join table_1 t_1
on a = b and c = 1

I want it to be like this:

left join table_1 t_1
on 
    a = b 
    and c = 1

Here is my "Editor -> Code Style -> General settings" window values. I tried some stuff, but it doesn't help.

enter image description here

1

There are 1 best solutions below

0
Vasilii Chernov On BEST ANSWER

At the moment DataGrip doesn't support JOIN condition formatting.

Please, follow the issue DBE-17971