Disable auto-indent and auto-complete for SQL syntax

已回答

Hi,

I've been trialling DataGrip for the past few days and have been liking the experience so far.

However, there's just one thing that drives me crazy... I'm used to writing my queries in a very specific way, where the keywords are left-indented, something like:

 

SELECT *
FROM TABLEA
INNER
JOIN TABLEB
ON TABLEA.COLUMNX = TABLEB.COLUMNY
WHERE ...
AND ...
GROUP BY...


However, the autocomplete functionality interferes with my style of writing and I end up with something like:

SELECT *
FROM TABLEA
INNER JOIN --> 'JOIN' gets filled in when I press enter after typing 'INNER'
TABLEB
ON TABLEA.COLUMNX = TABLEB.COLUMNY --> auto indents

Is there a way of disabling the auto-complete for SQL syntax, as well as the auto indent? I can work around it by pressing space and erasing the auto indent so I can write in the style I want, but it's sort of disrupting what I've been used to all these years.

Thanks,

Michael

1

Hi,

You can change code style in settings:

Thank you.

0
Avatar
Permanently deleted user

Thanks Vasily. Was searching for this particular menu. Your tip did the trick!

Definitely subscribing after the trial period.

- Michael

1

请先登录再写评论。