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:

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:
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.
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.
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. |
![]() |
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.