user9443945
user9443945

Reputation: 135

How does this Color marker happen in eclipse IDE ,and what should I do to clear the Color marker

If I change the code the color will disappear, I do not know how does this happen.and when do we will use this features.

enter image description here

Upvotes: 6

Views: 4815

Answers (2)

Atul
Atul

Reputation: 3347

This is activated because of code coverage. If you want to remove it then follow these steps.

  1. Go to "Windows -> Show View -> Coverage" Select it. Click on "Open".
  2. Open the "Coverage" view.
  3. There are "X" and "XX" signs at upper right side.
  4. Click on one of them as per your requirement to remove the coverage session.

Refer the screenshot for more details.

enter image description here

Upvotes: 3

howlger
howlger

Reputation: 34135

It looks like you accidentally pressed the Coverage button instead of the Run or Debug button next to it.

To remove the red background color do the following: in the Coverage view click the Remove Active Session or Remove All Sessions button.

For information on what this Coverage does and what it is used for, see the EclEmma web site.

Upvotes: 11

Related Questions