dbForge Studio for PostgreSQL provides one default formatting profile. The tool allows you to create a new profile, edit formatting options and rules for your SQL document layout, add a profile from your computer, and/or activate it.
The guide describes how to:
1. On the Tools menu, select Options.
2. In the Options dialog that opens, navigate to Formatting > Profiles.
3. On the Profiles page, click Create New.
4. In the dialog that opens, specify the following profile details and click OK.
The created profile will be displayed under Your Profiles. If you activated the profile, it will be highlighted in bold.
Every formatting profile has a set of rules and options, which are grouped mainly by the statement.
1. On the Tools menu, select Options.
2. In the Options dialog that opens, navigate to Formatting > Profiles.
3. On the Profiles page, click Open Selected.
4. In the Edit Formatting Profile dialog that opens, edit formatting options:
Using the toolbar controls, you can do the following:
You can search for statements or options in the Search box. Start typing the name, and the matching options will be highlighted in the left-hand pane.
5. To save the changes in the selected profile, click Save. To create a new profile, click Save As, specify the profile name and location where it will be stored, activate it (if needed), and then click OK.
Note
You can change the formatting profile for the whole SQL query or certain segments of code as follows:
In a SQL document, right-click the SQL script or selected code segment that you want to format, and then select Format > Active Format Profile > and set the corresponding profile.
1. On the Tools menu, select Options.
2. In the Options dialog that opens, navigate to Formatting > Profiles.
3. Right-click the body of the window and select Show in Folder.
4. Copy the profile that you want to share.
5. Open or create the folder that you want to share, and paste the profile into it.
6. Notify your team about the name and location of the folder with the profile.
Alternatively, on the Formatting > Profiles page, right-click the profile that you want to share and select Copy File Path for sharing.