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 General > 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 click Edit. You can change the color used for:
      • Covered elements
      • Partially covered elements Note: only supported for Java source.
      • Uncovered elements
    2. Select the color that you want to use for the element and then click OK.

Feedback