为什么Eclipse代码完成不能在某些项目上工作? [英] Why does Eclipse code completion not work on some projects?

查看:135
本文介绍了为什么Eclipse代码完成不能在某些项目上工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Eclipse 3.3.2与PDT进行PHP开发。
我创建的所有项目,甚至SVN项目都有代码完成。
现在我刚刚打开另一个SVN项目,它没有代码完成或PHP模板(CTRL空间在该项目中什么也不做)。
但是,我可以打开其他项目和代码完成全部工作。



为什么代码完成和模板在一个项目中关闭如何将其重新开启?

解决方案

也许Eclipse不了解该项目有一个PHP性质。
尝试比较两个项目中的.project文件来寻找差异。它应该包含以下内容:

 < natures> 
< nature> org.eclipse.php.core.PHPNature< / nature>
< / natures>

.project文件将位于项目目录下的工作区中。


I have Eclipse 3.3.2 with PDT doing PHP development. All projects that I create, even SVN projects have code completion. Now I just opened another SVN project and it has no code completion or PHP templates (CTRL-space does nothing in that project). However, I can open the other projects and code completion all work in them.

Why would code completion and templates be "off" in just one project and how can I turn it back on?

解决方案

Maybe Eclipse doesn't understand the project has a "PHP nature". Try comparing the .project file on both projects to look for differences. It should contain something like:

 <natures>
  <nature>org.eclipse.php.core.PHPNature</nature>
 </natures>

The .project file will be in your workspace under the project directories.

这篇关于为什么Eclipse代码完成不能在某些项目上工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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