Navigate across scroll bar annotations

To identify rows with validation errors or rows that are currently focused or selected, use scroll bar annotations. These colored markers appear on the vertical scroll bar and help you navigate the document by indicating the locations of the following items:

  • Changes: Modified rows, including unsaved and saved changes.
  • Marks: Bookmarks and identifier occurrences.
  • Errors and warnings: Server and parsing syntax errors, warnings.
  • Caret position: Current caret position in a SQL editor.

Example: Navigate across scroll bar annotations

Enable scroll bar annotations

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:

  • Show changes – Marks saved and unsaved changes.
  • Show marks – Marks identifier occurrences and bookmarks.
  • Show errors and warnings – Marks errors and warnings.
  • Show caret position – Marks a caret position in a script.

By default, all options are selected.

Note

If you clear Show annotation over vertical scroll bar, the other options on the Scroll Bar page become unavailable.

4. Click OK to save the changes.

Change a scroll bar annotation color

By default, a scroll bar annotation color matches the color of the object that created it. You can change the 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.

Default colors for scroll bar annotations

The table describes scroll bar annotations for the Changes category.

Default color Default annotation Description
Unsaved changes 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 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 Highlight references Specifies the annotations in the middle of the scroll bar to indicate identifier occurrences.
Bookmarks 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 Server errors Specifies the annotations on the right side of the scroll bar to indicate server syntax errors.
Parsing syntax errors Syntax errors Specifies the annotations on the right side of the scroll bar to indicate parsing syntax errors.
Warnings Warnings Specifies the annotations on the right side of the scroll bar to indicate warnings, including warnings sent by Code Analyzer.
Code analysis error 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 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.