Ctrl+click doesn't work in Eclipse Juno

后端 未结 23 2082
傲寒
傲寒 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 14:20

    I had similar issue, along with this I found that java build path in project properties was missing. Project pulled from repository did not had .project file and eclipse created a default .project file, I copied content of .project.xml from other working project and removed the unsed imports, After which everything worked fine

    <projectDescription>
    <name>XYZ</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
            <arguments>
            </arguments>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.common.project.facet.core.builder</name>
        </buildCommand>
        <buildCommand>
            <name>org.eclipse.wst.validation.validationbuilder</name>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
        <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
        <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
        <nature>org.eclipse.jdt.core.javanature</nature>
        <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
    </natures>
    

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

    Go to

    Window -> Preferences -> General -> Editors -> Text Editors -> Hyperlinking

    and be sure that

    Enable on demand hyperlink style navigation

    is checked.

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

    For my situation I solved this problem by going to the project properties, select "Java Build Path", and then removing source folders that does not exist anymore.

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

    If your build path is correct, the ctrl + click will work

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

    For me it helped to simply close the edited source file and reopen it. If this doesn't work THEN you can try restarting whole IDE.

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