Eclipse 中双击变量不高亮 切换变量不高亮 解决

在eclipse/myeclipse中如果不小心把变量的高亮显示弄丢了。可真是件愁人的事,不过看到这你就不用愁了

windows->   preferences-> java-> Editor-> Mark   Occurences 

最上边的大标题的复选框勾上,下面的就都可以高亮显示了,Local   variables是变量的高亮显示

还有其他的一些高亮的

alt+shift+o 也可以打开关闭这个



======================== 以上是设置


 下面的是切换变量的时候不高亮 ---测试可以


http://blog.csdn.net/ritterliu/article/details/19087431


参考自 stackoverflow

Two "solutions" that at least get the highlight stuck on a new item (!!):

  1. As @Subas Raj mentioned, defocus and refocus the window - when you come back, your current position is occurrence-highlighted. Either hit AltTab twice, or use your mouse to click/focus some other window, then back.
  2. As @Leo and @Gorky mentions, hit AltShiftO twice. This is the shortcut for toggling highlight occurrences, and when you turn it back on, your current position is occurrence-highlighted.

And finally, a third ACTUAL solution: Replace one specific jar with a patched one:https://bugs.eclipse.org/bugs/show_bug.cgi?id=398509#c60

说是双击变量后,不高亮, 但是当窗口的focus变化了,就会高亮了,这是Eclipse的一个Bug, 解决方法就是将eclipse/plugins/ 目录下的 org.eclipse.e4.ui.workbench_0.11.0.v20130125-100758.jar 替换下。 

亲测可行, 就是反应略卡。


  • 5
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值