Reputation: 1765
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?
Upvotes: 26
Views: 14794
Reputation: 526
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.
Upvotes: 40
Reputation: 12728
The existing answers didn't work for me. I found it in the Resharper menu.
Resharper >> Cover >> Toggle Code Highlighting
Upvotes: 21
Reputation: 1765
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).
Upvotes: 4