Configuring code coverage colors

The default code coverage decorations shown in the editor and views are configurable.

About this task

You can modify the colors that are used for showing code coverage. By default, covered lines are shown in green; uncovered lines are shown in red.

Procedure

  1. Select Window > Preferences.
  2. Expand Appearance and then click Colors and fonts.
  3. In the Colors and Fonts page, expand Code Coverage.
  4. To change the colors used when displaying code coverage:
    1. Click the item that you want to change and then click Edit. You can change the color used for:
      • Covered elements
      • Elements that are not covered
    2. Select the color that you want to use for the element and then click OK.

Feedback