Change editor tab color to red for all errors

Answered

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?

0
3 comments

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?

 

0

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.

1

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.

0

Please sign in to leave a comment.