141

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?

Pang
  • 9,564
  • 146
  • 81
  • 122
devoured elysium
  • 101,373
  • 131
  • 340
  • 557

7 Answers7

243

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

Maciej Dobrowolski
  • 11,561
  • 5
  • 45
  • 67
123

enter image description here

You can just Right Click on your Project,

Goto Analyze -> Hide Coverage data

Abhilash Reddy
  • 1,519
  • 1
  • 10
  • 11
86
  1. double shift;
  2. input hide;
  3. choose Hide Coverage data;
  4. Over.
HouFeng
  • 863
  • 6
  • 4
24

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

Partha Sarma
  • 241
  • 2
  • 3
17

Go to View > Tool Windows > Coverage

Click on the small icon button Delete Coverage Database

Clean coverage database

Andrii Abramov
  • 10,019
  • 9
  • 74
  • 96
Kunal
  • 171
  • 1
  • 2
5

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.

Md Ayub Ali Sarker
  • 10,795
  • 4
  • 24
  • 19
4

2022 Update: now it's moved to Run -> Show Coverage Data

You can select which you want to show or hide.


parse
  • 1,706
  • 17
  • 27