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

Viewed 4256

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 Answers

Ctrl+Alt+L formats your code.

Settings | Editor | Code Style | SQL to adjust.

Related