您的位置:首页 > 编程语言 > Java开发

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

2017-10-12 15:10 316 查看
转自:http://blog.csdn.net/majian_1987/article/details/46691697

在Eclipse中,鼠标选中或者光标移动到java类的变量名时,相同变量会被标识显示(设置背景色高亮),

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

1.相同变量标识高亮显示: 

Window ->preferences ->Java ->Editor ->Mark Occurrences 

勾选复选框 Mark occurrences of the selected element in the current file

2.设置标识显示的高亮背景颜色: 

Window -> preferences -> General -> Editors -> Text Editors -> Annotations

右边列表选择Occurrences,点击Color设置高亮背景颜色。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  eclipse 同变量高亮