I'm learning how to write java (In Eclipse) add everything was going good until suddenly it highlighted all of my code in and i can't find how to switch it off. The code doesn't matter just
Asked
Active
Viewed 1,668 times
0
-
Pretty colorful, if you ask me :) – Hovercraft Full Of Eels Mar 18 '20 at 22:34
-
Try restarting Eclipse. – Arvind Kumar Avinash Mar 18 '20 at 22:55
-
1Have you accidentally run a Code Coverage launch instead of a straightforward Run or Debug? Check if you have a Coverage View with contents in it. https://www.eclemma.org/userdoc/annotations.html – nitind Mar 18 '20 at 23:05
1 Answers
0
It's a special 'code coverage' run. Eclipse is painting in red all lines that have never been executed yet, in green all lines that have, and in yellow all lines where some but not all ways through it have been covered.
See Clearing coverage highlighting in Eclipse for how to get rid of this.

rzwitserloot
- 85,357
- 5
- 51
- 72