DataGrip 2018.3 Help

Configuring the SQL code style

Change code style settings

Customize formatting rules for the SQL code: alignment, wrapping, and indentation.

  1. Click File | Settings | Editor | Code Style | SQL.

  2. Select all the necessary code style settings on the available tabs.

  3. Click Apply.

Code style settings

Create a code style for SQL

  1. Open Settings | Editor | Code Style | SQL.

  2. Click the Gear icon (The Gear icon), and select Duplicate.

  3. Type a name for a new style, and press Enter.

  4. Select all the necessary code style settings, and click Apply.

Create a code style for SQL

Configure code styles per data source

  1. Right-click a data source and select Properties.

  2. Click the Options tab.

  3. In the Code style drop-down menu, select a style that you want to apply .

  4. Click Apply.

Configure code styles per data source
Last modified: 6 February 2019