如何修复“标记事件”在Eclipse中? [英] How to Fix "Mark Occurrences" in Eclipse?

查看:110
本文介绍了如何修复“标记事件”在Eclipse中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse是一个很好的编辑器,其中很多精彩的功能之一就是Mark Occurrences功能。然而,我最近安装了Aptana插件,并尝试配置它,我以某种方式设法在我的Eclipse安装中打破了Mark Occurrences。



该功能仍然有效,但是,它不是突出显示给定对象的所有出现,现在它仅突出显示首次创建的事件。换句话说,在:

  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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆