Formatting Code

You can automate code formatting using the command line.

  1. Click Start.

  2. Type ‘cmd’ in the Search programs and files text box and press ENTER.

  3. Type a path to the documenter.com file located in the dbForge Documenter for SQL Server installation folder on your PC, and press the SPACE key.

    C:\Program Files\Devart\dbForge Documenter for SQL Server\documenter.com
    
  4. Specify the operation you want to perform (code formatting) and the required parameters and arguments:

    documenter.com /formatsql [/switch1[:value | [parameter1:value parameter2:value ..]] /switch2 ..]
    

    Tip: To see a quick help on the arguments available in the command line, type the following:

    /formatsql /?
    
  5. Press ENTER to run the process.

Note:

You can set the unlimited quantity of the required extensions:

documenter.com /formatsql /sourcefolder:"c:\" /filextention:*.sql /filextention:*.prg /filextention:*.db1

Arguments Used in Command Line

Select corresponding command line switches to perform the required operations:

Arguments used in command line