How can I get rid of most of the markers on the scrollbar?

It's looking like a rainbow and 99% of the things aren't relevant or important enough to be there (eg phpdoc "problems", or bogus "errors" like undeclared constants or uncaught exceptions - these are all incorrectly marked and there is heaps more)

I'd like to restrict this to highlights of syntax errors, searches found, or if I highlight something, the other instances of this highlighted variable/method found.  

The basics. 

As it is, it's completely useless, because the important things are drowned out.   However, the settings is so complex that it boggles the mind.

1
14 comments

Basically, you may change the severity to "No highlighting" for specific inspections that you do not use. This behaviour is controlled by the "Editor | Inspections" settings section.

0

Thanks, that's better - however I had to blanked disable everything under "Editor->Inspections".  So it's probably less than ideal.
A surface look tells me there are handy stuff there.

Now the next question I guess is how do you enable warnings without putting them on the scrollbar?

So if I do not want to scrollbar to be full of little marks, it seems I've got the "No highlighting, only fix"  option, only?  (which also would need to be set individually on each option - not something I'd endeavour doing)  Also; I don't know what does that mean or do, and it does not highlight even within the code - so it's not really what I'm looking for.

So I guess the question is; how do I keep the warnings, but remove them from the  scrollbar?

 

1

It is not quite obvious but you can disable these in "Editor | Code Editing" by setting "Error Highlighting > Error stripe mark min height" to "0". Just tried that and it is working like a charm, no color stripes are being shown on the scrollbar for me.  

2

So basically there's no way to disable most and enable the real issues only? 

phpStorm is a frustrating beast. 

Thanks anyway.

0

To sum up, unfortunately, there is no granular way to disable specific inspections from being displayed in the scrollbar. You may either disable some of them in general (so you will not be able to see these in the editor too) or disable the scrollbar markers completely.

I have just thought that as some kind of a workaround, you may configure two inspection profiles, something like "Do not disturb" and "All inspections": disable most annoying inspections in first profile and use it when necessary.

Just in case, a little bit more about it:

https://www.jetbrains.com/help/phpstorm/customizing-profiles.html

0

hm...you know what, that might just be a workaround indeed.  Thanks!

0

To sum up, unfortunately, there is no granular way to disable specific inspections from being displayed in the scrollbar.

Custom severity should work. But yes, it will also change how the IDE treats it (as it will become a non-standard severity)

0

Yep, the main drawback here is that it will be applied everywhere, not only in a scrollbar area.

0
Avatar
Permanently deleted user

You can actually remove just the scrollbar items for specific types of warnings in Pycharm. It's through the color scheme, so I assume it's possible in other Jetbrains IDEs. In Pycharm it's in Settings -> Editor -> Color Scheme -> General -> Errors and Warnings, each item will have a checkbox for "Error stripe mark" which toggles the scrollbar stripe. I still can't figure out how to disable it for the formatting suggestions though...

1
Avatar
Permanently deleted user

I just solved my problem. All the inspections for code formatting were actually Weak Warnings. I disable the Error Stripe Mark for Weak Warnings. It didn't do anything until I shut down Pycharm and restarted. Then they were gone! Thank god...

1

I got very distracted by those error stripes when there is about 1000 lines in code and 60 of those never used warnings and typo nags are creating horrible unartistic picture over the scroll bar. 
What I want is to be able to disable them by hovering at the site -> "turn this of". After doing suggested changes in settings there was the need to move the scroll bar to get setting effective. That was bad because now I don't know which change did the trick but they are gone. It could be the "editor colors" or inspections.That mentioned stripe height back to > 0 did not bring the stripes back.

0

You can use an inspector widget in a top right corner to change syntax highlighting, see https://i.gyazo.com/86ccba3e3e73776feabd3bc0aad00c9d.mp4 (sorry for the music). That way you can quickly mute all the warnings leaving only syntax errors. Or you can switch to "None" to mute all.

1

Dmitry, what is the music pls?

0

https://intellij-support.jetbrains.com/hc/en-us/community/posts/360010518700/comments/4415994928786

Well done finding and mentioning it here! I went through all the settings of File | Settings | Editor | Color Scheme where "Error stripe mark" and adjusted to my taste - basically remove everything except for real errors. For one setting File | Settings | Editor | Color Scheme | General | Unused code for the stripe to disappear I had to restart editor for this to start working.

1

Please sign in to leave a comment.