在Eclipse Juno中,Ctrl +单击不起作用 [英] Ctrl+click doesn't work in Eclipse Juno

查看:110
本文介绍了在Eclipse Juno中,Ctrl +单击不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我在Juno之前使用的每个版本的Eclipse,ctrl + click会找到变量/类/方法的声明。处理大型代码库时,这是非常有用的功能。如何让Juno做到这一点?

For every version of Eclipse I've used prior to Juno, ctrl+click would find the declaration of a variable/class/method. It was an extremely useful feature when dealing with a large code base. How do I get Juno to do this?

推荐答案

我可以确认Ctrl +点击工作正常如下:

I can confirm that Ctrl + click works fine with the following :

Eclipse Java EE IDE for Web Developers.
Version: Juno Release
Build id: 20120606-2254
Operating System : Windows 7, 64 Bit

您有以下偏好设置?

On Window -> Preferences -> General -> Editors -> Text Editors -> Hyperlinking -> Open Declaration

这是我在Juno中新建一个工作空间的方法:

Here is what I had for a new workspace in Juno :

更新

最近我还没有体验到这一点,但我隐约记得在以前的Eclipse版本中遇到了这个问题(Galileo和更早)。

I have not experienced this in the recent past, but I vaguely remember encountering this problem in previous Eclipse releases (Galileo and earlier).

只有当我们确定这是Eclipse工作区的问题时,下面所有的操作都值得。检查这个的快速方法是使用新的工作区重新启动eclipse(通过转到文件 - >切换工作区 - >其他...并选择最适合为空的文件夹的路径不同于当前的工作区文件夹)

All of what follows is worth doing only if we are sure that it's a problem with the Eclipse workspace. A quick way of checking this is to restart eclipse with a new workspace (Do this by going to File -> Switch Workspace -> Other... and choosing the path to a folder which is preferably empty and different than the current workspace folder).

如果事情在新工作区中工作,那么我的修复程序是以下之一,以增加极限值:

If things worked in the new workspace, my fix then was one of the following, in increasing order extremeness :


  1. 重新开始eclipse(Yup,有时这是所有的)

  2. 重新启动eclipse与code> -clean 参数来清理工作区(请参阅)。如果您使用旧版eclipse的工作区,这可能特别值得。

  3. 当上述失败,我只需要使用我现有的工作区时,我备份了我的工作区文件夹并在删除之后重新启动Eclipse。WORKSPACE_FOLDER / .metadata / .plugins / org.eclipse.jdt.core

  1. Re-start eclipse (Yup, sometimes that is all it took)
  2. Re-start eclipse with the -clean parameter to clean out the workspace ( See this). This might specially be worth doing if you used a workspace from an older version of eclipse.
  3. When the above failed, and I just had to use my existing workspace, I backed up my workspace folder and restarted Eclipse after deleting WORKSPACE_FOLDER/.metadata/.plugins/org.eclipse.jdt.core

这篇关于在Eclipse Juno中,Ctrl +单击不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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