JayL
JayL

Reputation: 2899

How to customize icons near the scrollbar in the Eclipse Java editor?

The Eclipse java editor displays small colored rectangle icons just to the right of the scrollbar to indicate lines with //TODOs, deprecated statements, etc. One of the most useful shows the other occurrences of a currently selected variable, but the color of this one is practically the same as the background.

What are these icons called and how can I customize the colors?

icons in eclipse IDE near editor scrollbar

Upvotes: 2

Views: 1376

Answers (1)

Mark Bennett
Mark Bennett

Reputation: 1474

Like a lot of things in Eclipse, it's easy, once you know what something is called ;-)

In the Preferences tree, that right strip is the "Overview Ruler". Here's some of my notes:

Display of Task and Bookmarks
    Preferences / General / Editors / Text Editors / Annotations
    Show in:
        Vertical Ruler = left edge icons, in sight of current scroll position
        Overview Ruler = right edge colored blocks, relative to overall file
        Text as = markup the actual text

Upvotes: 2

Related Questions