代码检查高亮:不能为Info和Weak Warning设置不同的高亮样式

Code inspection highlight: cannot set different highlight style for Info and Weak Warning severities

在 Android Studio 2.1.2 中,我无法为 Info 严重级别(由我的代码检查配置文件确定)设置突出显示样式。它显示为使用 Weak Warning 样式。

我按照说明进行操作 from the official docs here 但我没有看到信息条目,只有弱警告条目。这感觉像是 IDE 中的错误,因为当我单击 "Edit|Colors & Fonts" 按钮时,我被带到了我在该部分中选择的最后一个项目,而不是正确的项目,即 "Info"(或者可能是因为不存在这样的 "Info" 项)。

我也不知道如何将 "Info" 的新项目添加到颜色和字体下的列表中。

如对问题的评论中所述,INFO 严重性已弃用 IDEA-137974 Cannot change the color of the "info" severity

"INFO" level is deprecated since 2011 but it seems users don't know about it. I removed this severity from settings (will be available in 2016.3). If you want to have an additional severity you can always create it.

BTW in 2016.3 you will have INFORMATION severity. Particularly, this severity has no highlighting.

因此,您可以通过 Severity -> Edit severities... 使用自己喜欢的颜色创建自己的严重程度,然后改用这个颜色。