Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 292
loonex Avatar asked Aug 30 '11 14:08

loonex


2 Answers

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

like image 99
slava Avatar answered Nov 11 '22 02:11

slava


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

like image 44
sgibly Avatar answered Nov 11 '22 00:11

sgibly