dbForge Studio for SQL Server offers tools for navigating SQL code, such as viewing code structure, opening object definitions, highlighting syntax elements, and moving between statements. These capabilities help optimize your workflow and improve productivity.
Note
SQL scripts must be valid and error-free. Otherwise, the features described further won’t work.
To see the current code structure, select View > Document Outline.
You can jump to any statement in the code by clicking it in the Document Outline pane, which makes navigating large SQL documents easier.

To open an object definition, right-click the object and select Go To Definition, or press F12.

The object opens in Object Editor, where you can modify it visually—the underlying code is updated automatically.
Note
If an object exists only in the script and not in the database, selecting Go To Definition takes you to its declaration in the code.
Press Alt+PgUp or Alt+PgDn to move the cursor to the beginning of the previous or next SQL statement in the document.
Click a syntax element in a SQL document to highlight all its occurrences throughout the script. This feature is useful for identifying:
BEGIN and END keywords.BEGIN TRY and END TRY keywords.BEGIN CATCH and END CATCH keywords.CASE and END keywords.INSERT statements.The default highlight color is gray.

1. Select Tools > Options.
2. Select Environment > Fonts and Colors.
3. Under Display items, select Highlight References.
4. Under Item background, select the color you want.
5. Click OK.

You can locate matching keywords in pairs such as BEGIN/END, BEGIN TRY/END TRY, BEGIN CATCH/END CATCH, and CASE/END in SQL statements.
Place the cursor on a keyword and press Ctrl+F12 to jump to the other keyword in the pair.
For more information about CASE expressions, see Using the CASE Statement in SQL Server.
In large INSERT statements, the Studio helps you identify which values correspond to which column, and vice versa.
Place the cursor on a column name or value and press Ctrl+F12 to move the cursor between the column name and its corresponding values.
To identify rows with validation errors or rows that are currently focused or selected, use scrollbar annotations. These colored markers appear on the vertical scroll bar and help you navigate the document by indicating the locations of the following items:

1. In the top menu, select Tools > Options.
2. Navigate to Text Editor > Scroll Bar.
3. Select Show annotation over vertical scroll bar, then select annotations you want to display on the vertical scroll bar:
Note
By default, all options are selected.
When Show annotations over vertical scroll bar isn’t selected, the other options on the Scroll Bar page are unavailable.
4. Click OK to save the changes.
By default, a scroll bar annotation color matches the color of the object that created it. You can change the annotation color in the Options dialog.
To change a scroll bar annotation color:
1. In the top menu, select Tools > Options.
2. Navigate to Environment > Font and Colors.
3. Under Show settings for, select Text Editor.
4. Configure the settings.
5. Click OK to save the changes.
The table describes scroll bar annotations for the Changes category.
| Default color | Default annotation | Description |
|---|---|---|
![]() |
Unsaved changes | Specifies the annotations on the left side of the scroll bar to indicate script changes that have not yet been saved. |
![]() |
Saved changes | Specifies the annotations on the left side of the scroll bar to indicate script changes that have been saved. |
Note
You can’t change the colors of saved and unsaved changes.
The table describes scroll bar annotations for the Marks category.
| Default color | Default annotation | Description |
|---|---|---|
![]() |
Highlight references | Specifies the annotations in the middle of the scroll bar to indicate identifier occurrences. |
![]() |
Breakpoints | Specifies the annotations in the middle of the scroll bar to indicate breakpoints. |
![]() |
Bookmarks | Specifies the annotations in the middle of the scroll bar to indicate bookmarks. |
The table describes scroll bar annotations for the Errors and warnings category.
| Default color | Default annotation | Description |
|---|---|---|
![]() |
Server errors | Specifies the annotations on the right side of the scroll bar to indicate server syntax errors. |
![]() |
Syntax errors | Specifies the annotations on the right side of the scroll bar to indicate parsing syntax errors. |
![]() |
Warnings | Specifies the annotations on the right side of the scroll bar to indicate warnings, including warnings sent by Code Analyzer. |
![]() |
Code analysis errors | Specifies the annotations on the right side of the scroll bar to indicate errors found by Code Analyzer. |
The table describes scroll bar annotations for the Caret position category.
| Default color | Scroll bar annotation | Description |
|---|---|---|
![]() |
Caret | Specifies the scroll bar annotation as a horizontal line that aligns with a caret position in a script. |
Note
You can’t change the color for a caret.