In Eclipse, most of the coverage plugins, display covered/partially covered/uncovered lines with different colors (i.e. the whole line painted with a color)
I found the solution to this problem here but I thought it would be better to create a specific, well-phrased question so that people having exactly the same problem as me can find it better in Google / StackOverflow.
In a nutshell, through Editor -> Colors & Fonts -> General
(or, at least from IntelliJ 2017.3 onwards, Editor -> Colors Scheme -> General
)
you can customize the Colors & Fonts used for covered/partially covered/uncovered lines, modifying the background of the following entries:
For example, I wanted to use the same default colors already provided but not only on the margin but on the whole line (similar to how Eclipse does it), so I disabled "Foreground" and enabled "Background". Voilà!
I think the UI has been updated the the way to get to this option has changed. While it is already mentioned by others, I'd like to elaborate with a more detailed image to make it easier to see.
Intellij > Preferences > Editor > Color Scheme > General > Line Coverage >
There you will have three options.
Here is the menu option:
And here is what the question is specifically looking for:
Thanks for the update I fixed by uncovered lines in Intellij attached the screenshot for reference.
On the current apple version of IntelliJ you can find this under:
ItelliJIde > System Preferences > editor > Color Scheme > General
Then expand the arrow labeled
Line Coverage