Code Style. SQL
File | Settings | Editor | Code Style | SQL for Windows and Linux
DataGrip | Settings | Editor | Code Style | SQL for macOS
CtrlAlt0S
In this page, select the SQL dialect that you want to configure code style settings for.
![the SQL code style settings dialog the SQL code style settings dialog](https://resources.jetbrains.com/help/img/idea/2024.3/db_settings_editor_code_style_sql.png)
Read more about configuring the SQL style in Configure the SQL code style CtrlAlt0L.
For every SQL dialect, the following code style settings are available:
Item | Description |
---|---|
Change word casing options. | |
Configure code style for | |
Configure code style for | |
Configure code style for declared variables, routine arguments, routine statements, loops, and other structures. | |
Configure code style for corteges, binary expressions, the | |
Configure code style for indents, TAB and SPACE characters. | |
Configure what formatting to preserve when you reformat your code. | |
Configure behavior of code generation for indexes, primary and foreign keys. |
Thanks for your feedback!