Aptana 自动完成仅显示本地内容
我正在尝试使用 Aptana 进行一般 PHP 开发,我加载了一个旧的 CakePhp 项目来测试自动完成功能,我所能得到的只是本地函数和变量,绝对没有继承的函数和变量,这有点破坏了整个事情。有一个我不知道的设置可以解决这个问题吗?
I am trying out Aptana for general PHP development, i loaded an old CakePhp project to test the autocomplete and all i can get are the local functions and variable and absolutely none of the inherited ones, which kinda ruins the whole thing. Is there a setting i dont know about that fixes this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
显然我需要为 PHP 设置一个“Nature”,默认是某个 eclipse.something 版本。 Aptana 重新索引了该文件,现在可以使用了。
apparently i needed to set up a "Nature" to PHP, the default was some eclipse.something version. Aptana reindexed the file and it works now.
原始发布者将 PHP 添加到项目的“性质”中是正确的,但他没有提供如何执行此操作。我也遇到了同样的问题,一旦我将 PHP 添加到“自然”选择列表中,自动完成功能也提供了继承类的选项。
要添加 PHP 性质:
应该会为您提供自动完成列表。
阿杰
The original poster was correct in adding PHP to the "Nature" of the project, however he did not provide how to do it. I also had the same problem and once I added PHP to the "Nature" selection list the autocomplete provided the options for inherited classess as well.
To add the PHP Nature:
that should get you the autocomplete list.
AJ
我没有使用 aptana for PHP,但由于它基于 Eclipse,我假设需要将
cake
文件夹(通常与您的app
文件夹位于同一级别)添加到你的项目路径。您可以进入项目的属性并将其添加到路径或添加到库。
我通常将我的项目设置为指向整个文件夹,因此我不需要执行此步骤,但我的 Eclipse 安装将很好地获取继承的方法。
I haven't used aptana for PHP, but since it's based on Eclipse I assume the
cake
folder (in the same level as yourapp
folder usually) needs to be added to your project path.You can go into the properties of your project and either add it to the path or add it to the libraries.
I usually setup my project to point to the whole folder so I don't need need to do this step, but my Eclipse installation will pick up the inherited methods just fine.