Eclipse标记事件不会标记出现所有事件 [英] Eclipse mark occurrences doesn't mark all occurrences

查看:119
本文介绍了Eclipse标记事件不会标记出现所有事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是安装了Eclipse Juno Release,Build id:20120614-1722。

Just installed Eclipse Juno Release, Build id: 20120614-1722.

我已经打开了Mark Occurrences,我可以看到它确实标记了一些在我正在编辑的JS文件中出现的情况。但是,有一个函数调用它不标记。

I have 'Mark Occurrences' turned on, and I can see that it does indeed mark some of the occurrences in the JS file I'm editing. However, there's a function call that it doesn't mark.

var trackView = function() {
    saveData();
},
saveData = function() {
    // do something
};

当我点击定义的saveData事件(第4行)时,它突出显示,但它不突出显示函数被调用的行2上的事件。当我点击第2行的saveData事件时,不会突出显示。

When I click into the saveData occurrence where it is defined (line 4), it highlights, but it doesn't highlight the occurrence on line 2 where the function is being called. When I click into the saveData occurrence on line 2, neither highlights.

任何想法?

推荐答案

Eclipse中的错误报告还提到了另一种解决方法:大纲视图,然后再次选择您的来源中的字段。

The bug report in Eclipse also mentions another workaround: select something in the Outline view, and then select the field in your source again.

这个工作主要是。

This works mostly always for me.

这篇关于Eclipse标记事件不会标记出现所有事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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