Why is Eclipse highlighting my code in red and how do I turn it off?
Version: Photon Release (4.8.0)
How to remove code coverage highlighting in Eclipse? 1. Go to 'Window' menu -> Show View -> Other 2. Search for Coverage and click. 3. In Coverage view, there are X and XX sign in upper right side. Click any of these signs.
After running coverage reports in Eclipse (using cobertura or an EMMA plugin), my source code files get highlighted in green, red and yellow depending on which lines of code were covered by tests. ... Stack Overflow About Products For Teams Stack OverflowPublic questions & answers
To clear highlightings, click on X or XX icon as per convenience. Click the "Remove Active Session" button in the toolbar of the "Coverage" view. Close the IDE and open it again. This works if you did not use any code coverage tools and have just clicked the basic "Coverage" icon in the IDE.
On 4.2 eclipse it seems to be impossible to remove the eCobertura highlights. Sadly eCobertura plugins seems to be not maintained anymore. However if you start writing into the class, its gone. So type a space, and then undo, and its gone.
This is activated because of code coverage. If you want to remove it then follow these steps.
Refer the screenshot for more details.
Right click on project folder and then select on coverage configuration from configuration and deselect the source folder from configurations. Hope this will help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With