eclipse ctrl+左键 的快捷键失效的解决方法:
eclipse中写项目,
经常使用ctrl+左击函数名称来对函数进行追踪,
今天突然发现这个功能没法使用了,查循之后用以下的方法解决了。
第一步:
打开无法跳转的项目的文件,勾选显示隐藏的文件,这时你可以看到.project 文件,这个文件需要修改
第二步:
无法点击的项目中的 .project 文件内容如下 :
( 1 )
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>text</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
( 2 )
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>text</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.dltk.core.scriptbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.php.core.PHPNature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
找( 1 )、( 2 )的不同,然后把不能点击的项目根目下的 .project 文件修改过来即可,问题解决,超开心。