How to hide editor inspection banners

已回答

Hi,

how can you hide "application wide" this type of error banners at the top of the editor?

They pop up and, even when you fix the issue, they stay there.

You can disable inspection but that is not what you want to do.  
"Suppress for Checkstyle" does not do anything.

I prefer to see the issues only in the "problems" view or in the small compact flags view under those banners.

Kr

 

 

1

Is it specific to CheckStyle plug-in? Does the issue occur if you disable it?

0

Well, if I turn off the CheckStyle plugin, the checks are not done, so that doesn't help.

I've been searching for a couple of hours how this UI banner element is called and if it can be turned off for the specific inspections in the settings, but it doesn't seem so. It seems to be a setting specific for the plugin itself? If so, I would fix it by hand if possible.

Just wondering why that inspections can't be turned off in the UI?

Kr

0

Looks like a plug-in bug. I would report it to the plug-in developers.

0

To avoid confusion: my question is to find a way to turn off those yellow (warning) or red (error) inspection banners. I'm happy enough with the information I get from the Problems view in Idea. The problem with those inspection banners is, that they are not updated or removed correctly when I fix something. 

I spent yesterday evening a lot of time strolling through the source code of the CheckStyle plugin, installing versions of it from a couple of years back, where I know that the problem was not there.

I also tried all kind of combinations of the Inspection settings to get those inspection banners out of my editor, but it didn't work.

I changed to the old UI, where the banners are still there, but are considerable less high and take up less screen estate in the editor (that's something that could be improved in the new UI).

So I guess that those banners are pushed there from within IntelliJ itself, based on information from the plugin.
The plugin creates ProblemDescriptors via the InspectionManager for all problems he encounters and hands them off to the IDE. 

Then the IntelliJ idea shows some banners based on some inspections results.

However, when I "cause" some problems or fix the problems in the editor for the Checkstyle plugin, you see in the Problems Idea view that the list is updated according to the problems. So the plugin does the inspections correct: for problems and fixes.

However the banners in the editor are not updated (with the new problem) or removed (for a fix) in the editor. And that seems to be an Idea "issue"? Or is it that the plugin developer uses the calls in the plugin SDK wrong?

I would expect a way to turn off "Editor inspection banners" in the Inspections settings for a certain type of inspection, just like you can treat an inspection problem as a warning or error with a specified layout, but I didn't find that in the IDE.

0

There is no way to disable it in IntelliJ IDEA.

If it worked correctly in the previous versions, it's either a regression in the IDE or plug-in is using the API incorrectly.

Feel free to file a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA with the sample project and the steps to reproduce. Our developers will investigate it. If it turns out to be a plug-in issue, we'll let the developer know about it.

0

We are currently experiencing an issue with the banners in conjunction with the Checkstyle plugin  
(Checkstyle Plugin: 5.114.0, IntelliJ IDEA 2025.2.4).

The issue manifests as follows:

- You open a file  
- You attempt to click, for example, a word on line 17  
- At that moment, the Checkstyle banner appears and pushes the lines downward  
- As a result, you end up clicking on line 15 instead

I hope I was able to explain the issue clearly enough.  
The problem is not the presence of the banner itself, but rather that its appearance causes the UI to "jump," which affects usability.

 

/edit: reported as bug: https://youtrack.jetbrains.com/issue/IDEA-381690/Checkstyle-Banner-causes-jumping-lines

0
Hi Roland Praml, thank you for your comment and created YouTrack issue.
We will investigate this behavior as part of your request in YouTrack.

Thank you for your understanding and effort.
0

请先登录再写评论。