Clear code coverage information in IntelliJ

devoured elysium picture devoured elysium · Jul 30, 2015 · Viewed 29.5k times · Source

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?

Answer

Maciej Dobrowolski picture Maciej Dobrowolski · Jul 30, 2015

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