选择Window -> Preferences,左边列表 General -> Editor -> Text Editor -> Annotations ,窗口右边的列表中选 Occurrences ,指定颜色。