DataGrip 2019.2 Help

Code Style. SQL

File | Settings | Editor | Code Style | SQL for Windows and Linux
DataGrip | Preferences | Editor | Code Style | SQL for macOS

Use this section to configure formatting options for SQL files. When you change these settings, results of a change are displayed in the Preview pane.

Read more about configuring the SQL style in Configuring the SQL code style.




Change word casing options


Configure code style for INSERT, UPDATE, WITH, SELECT, FROM, and other query structures.


Configure code style for CREATE, ALTER, views, constraints, and other DDL structures.


Configure code style for declared variables, routine arguments, routine statements, loops, and other structures.


Configure code style for corteges, binary expressions, the CASE clause, and procedure calls.

Tabs and Indents

Configure code style for indents, TAB and SPACE characters.


Configure what formatting to preserve when you reformat your code.

Code generation

Configure behavior of code generation for indexes, primary and foreign keys.

Last modified: 11 November 2019