Data Grip - how do I perform a simple SQL formatting (the same way ctrl+shift+F does in DBeaver)?

8.3k Views Asked by At

I'm using Data Grip and writing queries for use with Presto. How can I get Data Grip to format my queries so they will be neat and easy to read?

enter image description here

enter image description here

2

There are 2 best solutions below

7
On

Ctrl/Cmd+Alt+L formats your code.

Settings | Editor | Code Style | SQL to adjust.

0
On

For macOS:

Command + Option + L