Code Style. SQL
File | Settings | Editor | Code Style | SQL for Windows and Linux
WebStorm | Settings | Editor | Code Style | SQL for macOS
This feature is available with the Database Tools and SQL plugin installed on the Settings | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains Marketplace. Please note that it is a paid plugin.
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 .
Item | Description |
---|---|
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. | |
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. |