Ctrl+click doesn't work in Eclipse Juno

后端 未结 23 2079
傲寒
傲寒 2020-12-05 13:50

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 d

相关标签:
23条回答
  • 2020-12-05 13:58

    I faced this issue several times. As described by Ashutosh Jindal, if the Hyperlinking is already enabled and still the ctrl+click doesn't work then you need to:

    1. Navigate to Java -> Editor -> Mark Occurrences in Preferences
    2. Uncheck "Mark occurrences of the selected element in the current file" if its already checked.
    3. Now, check on the above mentioned option and then check on all the items under it. Click Apply.

    This should now enabled the ctrl+click functionality.

    0 讨论(0)
  • 2020-12-05 13:59

    The solution for me was to configure the build path to include the project itself.

    1. Right click on open project.
    2. highlight build path
    3. click on Configure build path…
    4. click on Source
    5. Click Add Folder… button.
    6. Put a check mark next to your project.
    7. Click OK.

    If necessary, click the project menu and choose the ‘clean…’ option to rebuild.

    0 讨论(0)
  • 2020-12-05 13:59

    I had same problem; i tried to Change in preference, clean work space etc. nothing worked. Solution: Finally i found there is error in class path configuration; after fixing this everything became normal.

    0 讨论(0)
  • 2020-12-05 14:01

    I had the same issue, and solved it the following way. My issue came because I imported a project from Git, which wasn't having the project file. So Eclipse was not recognizing the project as a java one. Ctrl+click was not working and so there was the F3 issue.

    Solution:(not a direct one. but solved my issue)

    • import -> projects from git -> from URI -> select the new project wizard
    • so an empty project with src folder will be created.

    • then copy all the src files in to the folder manually.

    0 讨论(0)
  • On my system, Ctrl+click brings up the right-click menu instead of opening the declaration. However, if you hold Ctrl and hover the mouse pointer over the variable/class/method name, a small boxed menu appears with "open declaration" at the top. You can move the pointer down and click that item to get the desired effect.

    I'm running Ubuntu 14.04 through VMWare on OS X.

    0 讨论(0)
  • 2020-12-05 14:04

    If you're working on a large project and are working with a repository, you could just have the file opened via the wrong project, I just had two instances of the file open, where one was the one where I couldn't do Ctrl + click, while on the other file I could Ctrl + click on it successfully.

    0 讨论(0)
提交回复
热议问题