IntelliJ IDEA 2020.2 Help

Code Style. SQL

File | Settings | Editor | Code Style | SQL for Windows and Linux

IntelliJ IDEA | Preferences | Editor | Code Style | SQL for macOS Ctrl+Alt+S the Settings/Preferences icon

Use this page to configure formatting options for SQL files. When you change these settings, the Preview pane shows how this will affect your code.

Read more about configuring the SQL style in Configure the SQL code style Ctrl+Alt+L.

ItemDescription
CaseChange word casing options
QueriesConfigure code style for INSERT, UPDATE, WITH, SELECT, FROM, and other query structures.
DDLConfigure code style for CREATE, ALTER, views, constraints, and other DDL structures.
CodeConfigure code style for declared variables, routine arguments, routine statements, loops, and other structures.
ExpressionsConfigure code style for corteges, binary expressions, the CASE clause, and procedure calls.
Tabs and IndentsConfigure code style for indents, TAB and SPACE characters.
WrappingConfigure what formatting to preserve when you reformat your code.
Code generationConfigure behavior of code generation for indexes, primary and foreign keys.
Last modified: 06 August 2020