sqlsettingsjetbrains-idedatagrip

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


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


Solution

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

    Please, follow the issue DBE-17971