sqldatagripnested-select

suppress/eliminate datagrip sql reformatting for nested selects


In datagrip's SQL editor, if I start with a sql select like

select 
col1,
col2,
col3 
from table1

and then wrap it in parentheses in a nested select context, it resets all my lines, viz:

select
t1.*
from (
  select col1
    , col2
    , col3
  from table1
) t1

I hate this so much. I would like it to behave something like:

select
t1.*
from 
(
select 
col1
,col2
,col3
from table1
) t1

The difference would be that it doesn't re-assign lines and indents for the nested select. --I can take care of that myself.

Does anyone know how to turn off this wrapping/indenting behavior for nested selects? I've messed with DG's preferences dialogue for some while but to no avail. Thanks for any advice!


Solution

  • You can disble code formatting.

    enter image description here