Disable colors covering the scrollbar

已回答

Hi, 

after upgrading I have my scrollbar choked by colors. 

How do I disable this behaviour? It's completely unclear to me their meaning, but I am pretty sure I don't need them. 

They are really annoying to say the least, making the scrollbar unusable.

 

thanks,

0

I mean the brown bars on the right.

0

Rd those are error stripe marks that usually indicate problems in the code. Stripes are also drawn for search occurrences and in some other cases which my depend on the programming technology.

If you would like to get rid of them, you can try the following:

1. Disable showing errors in the file via the widget on top:

This option takes effect only for the currently active file.

2. Go through the settings under File | Settings | Editor | Color Scheme | General, Search results, and disable Error stripe mark for them:

The same can be done for Errors and Warnings.

If you cannot find the option to get rid of the gutter stripe marks, please specify what project and file type you are working with and attach the screenshot of the entire IDE window so I can better understand your scenario. Thank you!

0

Hi, 

they aren't errors. It' s highlighting everywhere for different reasons I guess .. FIXMEs and TODOSs and errors are fine, but it often marks “normal” lines of code. For example here it marks a line into a method for no reason.

 

0

Rd it's the default behavior to highlight usages of the identifier under the caret, to turn it off please disable the Element under caret option under File | Settings | Editor | Code Editing: 

0

Hi, 

I put the mouse there to highlight the content, but the problem is that the line is marked on the gutter everytime. In that specific case with a violet rectangle.Why? If you highlight every function call, you end up cluttering the gutter of colours, making it useless and unusable (sometimes I can't even find the scrollbar into that mess).

The gutter should mark only errors, or at least there should be somewhere an option to do it. 

0

Rd from what I see, this is how the usage highlighting works, and the marks on the stripes cannot be turned off separately from the occurrences of the item under caret - you can only disable both.

If you would like to disable them separately - or there are other stripe marks you find excessive - please file a new issue in our tracker and specify your programming language. It would be helpful if you attach a code snippet demonstrating excessive stripes. Thank you!

 

0

Hi, 

the language is Ruby (isn't this the Rubymine community forum?).

I don't understand what you say. I am just opening a file and the gutter is cluttered with meaningless rectangle. Here another example.

The gutter of a .rb file.

 

You can see about 20 items on the right. They are so many that you can't count them because they even merge. If I move the mouse on any of them I see just the line of code at that point.

1) a pretty normal variable declaration, no warnings, no errors:

2) another useless mark (a simple condition):

 

3) here at least some kind of (wrong) warning (clearly a false positive of some inference made by Rubymine parser. It's ruby untyped code, so it clearly does not know what @current_user type is):

The question is: 

  • why 1) and 2)? 
  • how do I disable 3)  (I want to see syntax errors, not errors of Rubymine internal type inference routines  …)

     

    thanks,

     

     

 

0

Rd I understand how distracting it can be when so many color indicators appear at once. There is a general issue in our tracker related to the scrollbar usability in such a case, feel free upvote IJPL-55045. Still, it is possible to disable certain indicators to make the scrollbar less cluttered.

 why 1) and 2)?

I assume this is because the caret in the file you opened is initially on the “booking” variable, and 20 items on the right are all the occurrences of it in the file. Could you please confirm it's the case? Does it help if you disable Usages of element at caret option under IDE Settings > Editor > Code Editing?

how do I disable 3)

Code warnings can be enabled or disabled in inspection settings. The one from your screenshot appears to be “nil dereference”, you can check that on Alt+Enter while the caret is on the highlighted code and go to the inspection settings - or disable it right away - via the menu:

clearly a false positive of some inference made by Rubymine parser. It's ruby untyped code, so it clearly does not know what @current_user type is

Could you please share a minimal code example to reproduce so we can investigate and fix the case? If necessary, you can use our upload service to share code, just let us know the upload ID. Thank you!

0

请先登录再写评论。