简体   繁体   English

Intellij IDEA在深色主题中的滚动条上不显示警告

[英]Intellij IDEA doesn't show warnings on scroll bar in a dark theme

When the theme is light, I see warnings on the scroll bar as on the image: 当主题为浅色时,我在滚动条上看到警告,如图所示:

http://prntscr.com/gi6w82 http://prntscr.com/gi6w82

But if I set the theme to dark, I dont see any warnings on the scroll bar: 但是,如果将主题设置为黑暗,则在滚动条上看不到任何警告:

http://prntscr.com/gi6wrx http://prntscr.com/gi6wrx

What should I change in settings to see warnings with dark theme? 我应该更改哪些设置以查看带有深色主题的警告?

Check your color scheme in Editor > Color Scheme > General > Errors and Warnings . Editor > Color Scheme > General > Errors and Warnings检查颜色方案。

If you want the Error stripe mark in the gutter in the right hand side of your code editor to be visible in a dark theme then you'll probably want to choose a colour such as: BC3F3C 如果您希望代码编辑器右侧的装订线中的Error stripe mark在深色主题中可见,那么您可能希望选择一种颜色,例如: BC3F3C

Here's a screenshot showing the relevant configuration: 这是显示相关配置的屏幕截图:

在此处输入图片说明

The same approach can be followed to set the colour for the various other entries under Errors and Warnings . 可以采用相同的方法为“ Errors and Warnings下的其他各个条目设置颜色。 For example, you'll probably want to set the error stripe mark for the Warning node (which is the one shown/not shown in your screenshots) to BE9117 . 例如,您可能需要将Warning节点的错误条标记(在屏幕快照中显示/未显示)设置为BE9117

Note: if you choose the built-in dark theme Darcula (by selecting Scheme: Darcula within Editor > Color Scheme > General ) then visible colours are already configured for you. 注意:如果您选择内置的深色主题Darcula (通过在Editor > Color Scheme > General选择Scheme: Darcula ),则已经为您配置了可见颜色。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM