I'm writing PHP code in Eclipse PDT (PHP Development Tools), but for some reason it doesn't auto-complete PHP built-in functions, such as "isset()". This is unlike Komodo which also shows the arguments the function recieves. The only thing Eclipse auto-completes are my variables. Hwo can I make Eclipse auto-complete built-in functions?
6 Answers
I came across a similar issue and found a fix for it, however, it's a bit of hack as I couldn't find a way to make the change in the Eclipse Menus. Basically I needed to add the following .buildpath file to the root of the project folder:
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
<buildpathentry kind="src" path=""/>
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
</buildpath>
If you already have a .buildpath file you could probably just add the line to the existing file:
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
I believe I came across this issue when I created a project from existing source instead of creating a new project.
Its been a month since you asked your question so hopefully this is still helpful.
2 Comments
con...LANGUAGE entry fixed it -- and this in the 2021-12 version!Do you have auto-activate enabled? If you're looking for a prompt as you type you'll need to enable it.
Window->Preferences->Select PHP and then Code assist and it will be the last option in the dialog. You can set a delay time for the prompts as well.
Otherwise, you need to press Ctrl+Enter to make the prompts appear.