如何使Intellij Idea Coverage显示全彩色线条? [英] How to make Intellij Idea Coverage display full colored lines?
问题描述
在Eclipse中,大多数覆盖插件,显示带有不同颜色的覆盖/部分覆盖/未覆盖的线条(即整条线涂有颜色)
在IntelliJ Idea中,我找不到用描述性颜色绘制整条线的方法,只在左侧添加了一个小的,几乎察觉不到的标记,部分覆盖/未覆盖线的可视化真的很难。
任何想法?
我找到了解决这个问题的方法
例如,我想使用已提供的相同默认颜色,但不仅仅是在边距上但是就整行而言(类似于Eclipse的做法),所以我禁用了Foreground并启用了Background。 Voilà!
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)
In IntelliJ Idea, I couldn't find a way yet to paint the whole line with a descriptive color, only a small, almost imperceptible mark is added on the left hand side, making the visualization of partially covered / uncovered lines really difficult.
Any idea?
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:
- Full line coverage
- Partial line coverage
- Uncovered line
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à!
这篇关于如何使Intellij Idea Coverage显示全彩色线条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!