如何在Eclipse Java编辑器中自定义滚动条附近的图标?

时间:2010-11-30 16:52:48

标签: eclipse

Eclipse java编辑器在滚动条右侧显示小的彩色矩形图标,以指示带有// TODO,不推荐使用的语句等的行。其中一个最有用的显示当前所选变量的其他出现,但颜色这一个与背景几乎相同。

这些图标被称为什么?如何自定义颜色?

icons in eclipse IDE near editor scrollbar

1 个答案:

答案 0 :(得分:1)

就像Eclipse中的很多东西一样,一旦你知道什么叫做什么就很容易; - )

在“首选项”树中,右侧条带是“概述标尺”。这是我的一些笔记:

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