并且侧边滚动条会标出变量的位置, 查找变量十分方便。

1.相同变量标识高亮显示:
Window ->preferences ->Java ->Editor ->Mark Occurrences
勾选复选框 Mark occurrences of the selected element in the current file

[Java] Eclipse 设置相同变量背景色高亮显示

2.设置标识显示的高亮背景颜色:
Window -> preferences -> General -> Editors -> Text Editors -> Annotations

右边列表选择Occurrences,点击Color设置高亮背景颜色。

[Java] Eclipse 设置相同变量背景色高亮显示

相关文章:

猜你喜欢
  • 2021-05-22
  • 2022-12-23
  • 2021-05-07
  • 2021-06-14
  • 2021-07-10
  • 2021-07-16
  • 2021-08-18
相关资源
相似解决方案