且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Eclipse中更改警告和错误突出显示的文本背景颜色?

更新时间:2022-02-03 08:26:56

该颜色似乎来自为错误和警告注释显示的突出显示。

It looks like the color is coming from a "highlight" shown for error and warning annotations.

配置它们的地方是 Window |首选项|一般|编辑|文字编辑器|注释。对于每种注释类型,您可以更改突出显示颜色,或将样式更改为突出显示以外的其他颜色(例如下划线)。

The place to configure these is Window | Preferences | General | Editors | Text Editors | Annotations. For each annotation type, you can change the highlight color, or change the style to something other than "highlight" (like "underline").

在屏幕快照中,看起来突出显示的注释类型是错误和警告,尽管您可能还要更改其他类型。

In your screenshot, it looks like the highlighted annotation types are "Errors" and "Warnings", although there may be others you want to change as well.