windows-> preferences-> java-> Editor-> Mark Occurences 将最上边的大标题的复选框 勾上 ,下面的就都可以高亮显示了,Local variables是变量的高亮显示