I am using JetBrains' dotCover for writing my units tests in a .NET application. dotCover highlights the whole code base either green or red based on the code coverage, but I want to remove the highlights after I'm done checking the code coverage. So is there anyway to do this other than quitting Visual Studio, removing the Test Results folder and.dotUser file, and restarting the Visual Studio?
Asked
Active
Viewed 1.2k times
4 Answers
40
You can easily switch highlighting on and off by pressing Ctrl+Alt+K, H. Or you can click "Highlight code" on the toolbar of the "Coverage Results" window.

S.L. Barth is on codidact.com
- 8,198
- 71
- 51
- 66

Maria
- 526
- 4
- 7
-
2Ctrl-Alt-K opens "Call Hierarchy" tab on my machine – Michael Freidgeim Jun 20 '16 at 08:07
21
The existing answers didn't work for me. I found it in the Resharper menu.
Resharper >> Cover >> Toggle Code Highlighting

RubberDuck
- 11,933
- 4
- 50
- 95
-
1It seems that you've installed dotcover after you've installed resharper, so your keyboard shortcuts are not set for dotcover. R# Options -> Keyboard & Menus -> Apply Scheme should fix that. PS: Still not fixed in 2017 – Shaedar Jan 30 '17 at 11:49
4
Ok, after hours of playing with it, I realized how to remove it. You just need to close the unit testing session and it will remove it (closing the window or Unit Test Sessions window doesn't work).

NavidM
- 1,515
- 1
- 16
- 27