Format the SQL¶
Format lays out the SQL in the editor with consistent line breaks and indentation. It follows the datastore's own dialect in Source SQL, and Spark SQL in Spark SQL mode.
Related
- Concept: Query Editor for the editor's other actions and shortcuts.
- Switch the SQL Mode to change the dialect Format follows.
Step 1: Open the workspace from the Workspaces panel.
Step 2: Click Format under the editor, at its right, or press Shift+Option+FShift+Alt+F. On a narrow editor card, the button shows its icon only.
The SQL is rewritten in place.