问题
Suddenly I can't use autocomplete in my Eclipse PHP projects. When I press alt+/ I jsut hear a dummy sound. Which settings should I check?
回答1:
Try this. Right-click your top level folder in PHP Explorer. Select the "Configure" menu item then "Add PHP Support".
回答2:
Does you PHP Language Library include a link to your local PHP install? Sometimes I've found my project gets corrupted, and that PHP gets stripped from that include.
回答3:
In this situation, simply reloading Eclipse helped.
回答4:
For me, simply choosing 'Project > Clean' restores auto/code completion. (Eclipse 3.7.0 Indigo with PDT 3.0)
回答5:
For me I needed to re-create my workspace (was using a workspace from an older version of PDT). Copying then importing the projects into the new workspace still worked.
来源:https://stackoverflow.com/questions/1827066/pdt-autocomplete-broken-in-eclpise