Tabs and Indents
File | Settings | Editor | Code Style | SQL | <sql_dialect> | Tabs and Indents for Windows and Linux
WebStorm | Settings | Editor | Code Style | SQL | <sql_dialect> | Tabs and Indents for macOS
CtrlAlt0S
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.
As <sql_dialect>, select the SQL dialect on the Code Style. SQL page.
Configure code style for indents, TAB and SPACE characters.
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.
Item | Description |
---|---|
Use tab character | Use the Tab key for indentation. When the checkbox is cleared, WebStorm uses spaces instead of tabs. By default, the checkbox is cleared. |
Smart tabs |
The Smart tabs checkbox is available if the Use tab character option is enabled. By default, the checkbox is cleared. |
Tab size | In this field, specify the number of spaces included in a tab. Default value: |
Indent | In this field, specify the number of spaces to be inserted for each indent level. Default value: |
Continuation indent | Specify the indentation for lines that continue from the previous line, making it clear that they are part of the same statement or block of code. Continuation indents are used when a single statement is too long to fit on one line. Default value: |
Keep indents on empty lines | If this checkbox is selected, WebStorm will keep indents on the empty lines as if they contained some code. If this checkbox is cleared, WebStorm will delete the tab characters and spaces. By default, the checkbox is cleared. |
Thanks for your feedback!