Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Eclipse highlighting my code in red and how do I turn it off? [duplicate]

Tags:

eclipse

Why is Eclipse highlighting my code in red and how do I turn it off?

enter image description here

Version: Photon Release (4.8.0)

like image 878
Chloe Avatar asked Jan 17 '19 19:01

Chloe


People also ask

How to remove code coverage highlighting in Eclipse?

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.

Why are my source code files highlighted green in Eclipse?

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

How to clear highlightings in Visual Studio Code?

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.

How to remove ecobertura highlights in Eclipse?

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.


2 Answers

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. The "X" sign for remove single active session and "XX" for to remove all active sessions.
  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

like image 112
Atul Avatar answered Oct 12 '22 00:10

Atul


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.

like image 20
NIKITA SARODE Avatar answered Oct 12 '22 01:10

NIKITA SARODE