Eclipse选中部分未高亮显示
问题描述:
在 eclipse 中使用快捷键或其他原因,不小心按错了,使得变量的高亮显示没了。
1.解决方法:
选择:windows-> preferences->java->Editor->Mark Occurences
选择最上的复选框,下面的就有很多了。
其中的Local variables就是变量的高亮显示。
![](http://dl.iteye.com/upload/attachment/0062/0393/c0a84108-8b7c-350d-8800-b5f52e1b7f5f.png)
1.解决方法:
选择:windows-> preferences->java->Editor->Mark Occurences
选择最上的复选框,下面的就有很多了。
其中的Local variables就是变量的高亮显示。
![](http://dl.iteye.com/upload/attachment/0062/0393/c0a84108-8b7c-350d-8800-b5f52e1b7f5f.png)
2.快捷键:
网上搜了一下,原来是Toggle Mark Occurrences (Alt + Shift + 0)
这个按钮没有按下,在工具栏的小黄颜色的笔 的形状的图标。
3.改变其颜色:
选择:windows-> preferences->java->Editor->Mark Occurences->第一行有个“Annotations”点击进入,显示出列表,找到 Occurrence annotation 右边选择Color即可。
这个按钮没有按下,在工具栏的小黄颜色的笔 的形状的图标。
3.改变其颜色:
选择:windows-> preferences->java->Editor->Mark Occurences->第一行有个“Annotations”点击进入,显示出列表,找到 Occurrence annotation 右边选择Color即可。