蚀自动突出显示不可读 [英] eclipse auto highlight unreadable
问题描述
我已经导入了一个用于分配任务的项目,并且eclipse决定自动突出显示使它们不可读的部分.我查看了文本编辑器的设置,但没有找到与此匹配的内容.
I have imported a project for an assignment and eclipse has decided to auto highlight parts which make them unreadable. I have looked in the text editor settings and found nothing matching this.
推荐答案
您之所以会看到此输出,是因为(很可能是偶然地)选择了 Coverage As> Java Application 而不是 Run As> Java从 Project Explorer 中的项目节点的上下文菜单中选择应用程序".
You are seeing that output because you (probably accidentally) selected Coverage As > Java Application instead of Run As > Java Application from the context menu for your project node in Project Explorer.
请注意,覆盖率位于上下文菜单中的运行方式上方.
Note that Coverage As is immediately above Run As in the context menu.
屏幕截图输出中的颜色是有意义的:
The colors in the output of your screen shot are meaningful:
- 绿色背景表示代码在您的应用程序运行时已执行.
- 红色背景表示您的应用程序运行时未执行代码.
- 您还可以看到黄色背景,这意味着代码已执行,但并非所有可能的路径都已执行.您可能会在if语句或switch语句上看到它.
本文简要概述了Eclipse中的代码覆盖率
This article gives a brief summary of code coverage in Eclipse.
这篇关于蚀自动突出显示不可读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!