GiladZa789
GiladZa789

Reputation: 141

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

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

Upvotes: 13

Views: 11480

Answers (2)

moscas
moscas

Reputation: 10345

Ctrl/Cmd+Alt+L formats your code.

Settings | Editor | Code Style | SQL to adjust.

Upvotes: 14

mialkin
mialkin

Reputation: 2781

For macOS:

Command + Option + L

Upvotes: 8

Related Questions