How to get my class to appear in Aptana's autocomplete?

蹲街弑〆低调 提交于 2020-01-09 11:37:30

问题


I'm searching for a possibility to add my own classes to the Aptana autocompletion for my project. At the moment I have one project file with a directory "class" with class files in it, which will be inserted with "require_once" in my php project.

Can you help me?


回答1:


File->New->PHP Project-> Project Explorer ( new project )

right click on [YOUR PROJECT] in "Project Explorer" -> Properties

You will see "Properties for [YOUR PROJECT]" window

Project Natures -> PHP (checkbox) and click "Make Primary" button.

OK, OK

Project will be reindexed and your classes will be available




回答2:


Any class existing in your project (assuming it's a PHP project) will be included in the code assist when you start typing a letter. The studio does not restrict the code assist proposals to the include or require tags, so you'll need to make sure that you include anything that your script is using.

In case you would like to add external directories (frameworks, and such), you can attach it by following the instructions at the Studio's Wiki




回答3:


This solved it for me:

http://www.liquidcomposition.com/devblog/?p=89

In short: Add your project to: Window > Preferences > Aptana > Editors > PHP > PHP Libraries And make sure your project is a PHP-project: Rightclick project > Properties > Project Natures




回答4:


I resolve this in this way:
https://stackoverflow.com/a/13871388/1453233

Try to find out how to install:
"org.eclipse.php.core.PHPNature" Nature with PDT plugin.



来源:https://stackoverflow.com/questions/7244722/how-to-get-my-class-to-appear-in-aptanas-autocomplete

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!