如何修复“标记事件”在Eclipse中? [英] How to Fix "Mark Occurrences" in Eclipse?
问题描述
该功能仍然有效,但是,它不是突出显示给定对象的所有出现,现在它仅突出显示首次创建的事件。换句话说,在:
1。狗狗=新狗();
2. dog.bark();
3. dog.bark();
只有第1行中的狗才会突出显示,而不是2或3中的狗
然而,在我知道我配置好的东西之前,所有三个狗引用将被Eclipse突出显示。有没有人知道我改变了什么配置选项来打破这样的事件的标记?
检查以下首选项设置:
首选项>常规>编辑器>文本编辑器>注释
在这里比较发生和写入发生的设置。
您可能没有将 选项
Eclipse is a great editor, and among it's many wonderful features one of my favorites is the Mark Occurrences feature. However, I recently installed the Aptana plug-in, and in trying to configure it I somehow managed to break Mark Occurrences in my Eclipse installation.
The feature still works somewhat, but instead of highlighting all occurrences of a given object, it now only highlights the occurrence where it is first created. In other words, in:
1. Dog dog = new Dog();
2. dog.bark();
3. dog.bark();
Only the "dog" in line 1 would be highlighted, not the "dog" in 2 or 3.
However, before I know I had things configured such that all three "dog" references would be highlighted by Eclipse. Does anyone know what configuration option I changed to "break" the marking of occurrences like this?
Check the following preference setting:
Preferences > General > Editors > Text Editors > Annotations
In here compare the settings for Occurrences and Write Occurrences.
You probably don't have the Text as higlighted option checked
这篇关于如何修复“标记事件”在Eclipse中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!