123
votes

I have configured IntelliJ to paint the background of any line that has been executed at runtime to green when running in Coverage mode.

At times, I would like to just make all the files in the project revert back to their old and typical background colors, i.e, to remove all the coverage information.

Is that possible? How?

6

6 Answers

210
votes

just close the coverage window with "x" button:

closing window

update: for the recent IntelliJ IDEA 2018.2.x, you can hide coverage by clicking left-hand side coverage bar (the colored one, close to line numbers) and then Hide coverage link:

closing window in IDEA 2018.2.x

117
votes

enter image description here

You can just Right Click on your Project,

Goto Analyze -> Hide Coverage data

60
votes
  1. double shift;
  2. input hide;
  3. choose Hide Coverage data;
  4. Over.
19
votes

After the newer update, it seems the "Hide Coverage" option is removed from the "Analyze" section. You can find the "Hide Coverage" option in the "Run" menu

16
votes

Go to View > Tool Windows > Coverage

Click on the small icon button Delete Coverage Database

Clean coverage database

5
votes

To view/close code coverage results => Run the desired class with coverage, select suite to show, and open class in the editor. => On the main menu, choose Analyze | Show/remove Code Coverage Data.