docs/user_guide/sql-query-formatter.md
The Beekeeper SQL Query Formatter is a great way to ensure your SQL meets strict formatting requirements either from your boss or just yourself. The SQL Query Formatter brings the options of the SQL Formatter NPM Package to your fingertips to set, save, and use formatting presets.
Right click on the editor window and select Open Query Formatter or click the button next to Save and Run to open the formatter. From there, you can select and update any of the presets available.
You can set the default formatter for your queries using the Beekeeper Studio configuration system. Out of the box this will be bk-default.
[ui.queryEditor]
defaultFormatter = bk-default
Note, applying doesn't save these settings to the selected preset.
Follow the instructions for formatting a query, but instead of clicking Apply, click Save Preset
Note: Saving doesn't automatically apply the updates. Click Apply for the settings to be applied to your query.
Note: To apply the preset to your SQL, click Apply.
Note: The 3 built-in presets cannot be deleted. They can be edited though.