Formatting SQL Code with dbForge SQL Complete

To keep SQL code readable, you should format it. To escape tedious manual code formatting, you can use a wide set of code formatting options provided by dbForge SQL Complete to perform this task automatically. This topic explains how to format SQL code using dbForge SQL Complete.

To format text of your SQL query, select SQL Complete -> Format Document in the top menu. dbForge SQL Complete will format your SQL code based on the selected formatting options. To apply the options, do the following:

  1. In the top menu select SQL Complete -> Options. The Options dialog box opens.
  2. Expand the Formatting node and select required options. For example, you can go to the Indentation tab and select Indent clause content normally. dbForge SQL Complete shows how this option affects clause indention in the preview section. 

    Formatting options of SQL Complete

See Also