Change editor tab color to red for all errors
已回答
Editing a Java file, when I have an unused import the line in the editor shows as a problem (level: error). However, the file name in the editor tab is not highlighted red, as it is for other errors. How can I configure this editor tab text to be colored red for those errors?
请先登录再写评论。
Unused imports are by default considerations, not errors. What is the configuration you have in Settings (`⌘ + ,` or `Ctrl + Alt + S`) > Editor > Inspections > Java > Imports > Unused Import?
When Severity is set to Error, the file name in editor tab should be underlined with a red line. Can you try to change the severity and see if it helps?
Thank you, that did the trick. It was not enabled in Imports before.
I think the core issue is that errors produced from the checkstyle-idea plugin (I have UnusedImports configured in checkstyle as an error) show inline in the code editor as errors but do not appear to affect the editor tab error state.
Thank you for the info.
As it is a third-party plugin, unfortunately we are not able to implement bugfixes and change requests.
You can create a new issue at the plugin's issue tracker: https://github.com/jshiell/checkstyle-idea/issues for the mentioned issue.