Jan 4, 2013

Bring PHP core auto-complete back in Eclipse 3.7

Imported a project from git server, found that I could not 'Add PHP Support...' to it to get php core function and keyword auto-complete during coding, it was really annoying...

Finally found this solution on Stackoverflow, it works for me.

1. Open file .buildpath in project root path.
2. Add following lines if there is no <buildpath> section:


<buildpath>
 <buildpathentry kind="src" path=""/>
 <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
</buildpath>

3. If there is <buildpath> already, just add this line:

<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>

4. Restart Eclipse.

source link: http://stackoverflow.com/questions/1232647/code-completion-assist-for-built-in-php-functions-in-eclipse-pdt