# Code Style. SQL

> **TL;DR**
> `File | Settings | Editor | Code Style | SQL` for Windows and Linux
>
>
>
> `IntelliJ IDEA | Settings | Editor | Code Style | SQL` for macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) ![the Settings icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.settings.svg)

In this page, select the SQL dialect that you want to configure code style settings for.

Read more about configuring the SQL style in [Configure the SQL code style](configure-the-sql-code-style.html) `Ctrl+Alt+L` (Windows), `⌘ ⌥ L` (macOS), `⌘ ⌥ L` (IntelliJ IDEA Classic (macOS)), `⌘ ⌥ L` (macOS System Shortcuts), `Ctrl+Alt+L` (XWin), `Ctrl+Alt+L` (GNOME), `Alt+Shift+L` (KDE), `Ctrl+Alt+L` (Emacs), `Ctrl+Alt+L` (Sublime Text), `⌘ ⌥ L` (Sublime Text (macOS)), `Alt+Shift+F` (NetBeans), `Ctrl+Alt+Enter` (Visual Studio), `⌘ ⌥ ⏎` (Visual Studio (macOS)), `Ctrl+Alt+L` (Eclipse), `⌘ ⇧ F` (Eclipse (macOS)).

For every SQL dialect, the following code style settings are available:

| Item | Description |
| --- | --- |
|  [Case](code-style-sql-case.html) |    Change word casing options.    |
|  [Queries](code-style-sql-queries.html) |     Configure code style for `INSERT`, `UPDATE`, `WITH`, `SELECT`, `FROM`, and other query structures.     |
| [DDL](code-style-sql-ddl.html) |     Configure code style for `CREATE`, `ALTER`, views, constraints, and other DDL structures.     |
| [Code](code-style-sql-code.html) |     Configure code style for declared variables, routine arguments, routine statements, loops, and other structures.     |
| [Expressions](code-style-sql-expressions.html) |     Configure code style for corteges, binary expressions, the `CASE` clause, and procedure calls.     |
| [Tabs and Indents](code-style-sql-tabs-and-indents.html) |     Configure code style for indents, TAB and SPACE characters.     |
| [Wrapping](code-style-sql-wrapping.html) |     Configure what formatting to preserve when you reformat your code.    |
| [Code Generation](code-style-sql-code-generation.html) |     Configure behavior of code generation for indexes, primary and foreign keys.     |

## See also

### Procedures

[Code style schemes](configuring-code-style.html)

