Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse PDT Autocomplete

I have tried for several days now to get autocomplete working.

I have a clean install of Eclipse PDT and another with plugins like aptana and subversion, but neither works with autocomplete.

What do I have to do to get autocomplete working? Do i need some shortcut for this? In Netbeans it is working without a shortcut...and this video looks like its working in eclipse too.

Thanks for any hints and help ;)

like image 264
Abenil Avatar asked Apr 27 '10 15:04

Abenil


People also ask

How do I turn on autocomplete in eclipse?

Step 1: Open your Eclipse or Spring Tool Suite, then go to the Window > Preferences as shown in the below image. Step 2: In the next screen go to the Java > Editor > Content Assist > Auto activation triggers for Java as shown in the below image.


3 Answers

For me, when using PDT, when I begin to type a variable, I can do Ctrl-space and I get a list of matching defined variables in my code. I believe you can get the list automatically. If you go Window » Preferences, then find PHP in the left column. Expand PHP, expand Editor, and select Code Assist. I believe Auto Activation is the option to pop up the autocomplete automatically.

like image 109
hendepher Avatar answered Oct 18 '22 07:10

hendepher


I tried to follow the accepted answer with no use. Then I found answer to this question in another SO thread. Basically all you need to do is right click on the project and go to Configure > Add PHP support. If that option is grayed out then you already marked project as the PDT project.

like image 34
Mike Starov Avatar answered Oct 18 '22 07:10

Mike Starov


hint: check General > Editors > File Associations > .php (.phtml,...) if default editor is "PHP Editor"

like image 39
fbtb Avatar answered Oct 18 '22 06:10

fbtb