The coverage data Preferences pages
Use the Annotated Source Preferences page and its dependent Graphical Styles and Source Styles Preferences pages to change the default appearance of the Annotated Source view.
To display the Preferences pages, select Window > Preferences. In the Preferences page tree, expand the Profiling and Logging entry, and then expand the Appearance entry. You can do the following:
- Click the Annotated Source entry to show or hide line coverage symbols on the source code display.
- Expand the Annotated Source entry and click Graphical Styles to change colors for pie charts in the source data display.
- Expand the Annotated Source entry and click Source Styles to change fonts and colors in the source code display.
Annotated Source page
The checkbox for Display line coverage symbols allows you to show or hide symbols for line coverage (hit, partially hit, and missed) in the left margin of the annotated source code display. If you hide the symbols, hit, partially hit, and missed lines are distinguished only by color.
The list for Source Lookup Path specifies the search paths for locating source code that is not in a project in your workspace. Use the Add and Remove buttons to modify the list.
Graphical Styles page
You can customize the colors in the pie charts for hit, partially hit, and missed lines. You can also customize the fonts used in the Coverage Summary chart.
Note: Clicking the Change Text Font button displays the Font dialog box. Use the Font dialog box only to change the font and font size. Use the Preferences page to change font colors and font attributes.
The Restore Defaults button allows you to reset the display.
Source Styles page
You can customize the style (font text and size, foreground and background color, and attributes) for individual categories of text in the source display. For example, you can choose to have partially covered lines displayed with an underline and a magenta background.
Note: Clicking the Change Text Font button displays the Font dialog box. Use the Font dialog box only to change the font and font size. Use the Preferences page to change font colors and font attributes.
The Restore Defaults button allows you to reset the display.
Parent topic
Code coverage monitoring user interface reference
Related reference
The Annotated Source view, source data display
The Annotated Source view, source code with annotations display