Eclipse 中双击变量不高亮 切换变量不高亮 解决
2016-06-08 08:45
351 查看
在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 (!!):
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.
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 替换下。
亲测可行, 就是反应略卡。
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 (!!):
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.
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 替换下。
亲测可行, 就是反应略卡。
相关文章推荐
- Win7 不能运行bat
- MyEclipse Web Project转Eclipse Dynamic Web Project
- Windows Clang开发环境备忘
- C#实现自定义双击事件
- 傻瓜式用Eclipse连接MySQL数据库
- php实现简单的语法高亮函数实例分析
- javascript 双击文本框编辑功能代码
- JS实现图片高亮展示效果实例
- JS实现双击编辑可修改状态的方法
- jQuery实现网站添加高亮突出显示效果的方法
- jQuery实现高亮显示的方法
- Eclipse引入jquery报错如何解决
- jquery ezUI 双击行记录弹窗查看明细的实现方法
- jQuery实现高亮显示网页关键词的方法
- 让Flex Builder 3.0与Eclipse3.4整合起来
- Eclipse配置Javascript开发环境图文教程
- 使用zend studio for eclipse不能激活代码提示功能的解决办法
- 图解Eclipse j2ee开发环境的搭建过程
- 两种Eclipse部署动态web项目方法
- ext for eclipse插件安装方法