eclipse PDT: How to enable content/code assist for

2019-06-01 09:08发布

问题:

I am struggeling getting content/code assist to work for PHP libraries (other than Zend) in my Zend Framework project folder:

  • library
    • Doctrine
    • Zend (<-works with code assist...)
    • ZendX

Content assist remains blank when using this libraries...

Any suggestions?

Thanks, Udo

回答1:

Content Assist is available for any compatible resources in the include path.

Right click your project folder. Then Include Path. Then Configure Include Path. A window will appear. Configure any needed resources.

Further Information in the Zend Studio Manual:

  • Adding Elements to a Project Include Path
  • Include Paths
  • Code Assist Concept


回答2:

This may be helpful for some one, I am using eclipse kepler, and I did not find Include_path variable. If you have same probleme as me, right click on the project and select configure then add php support. This will add php include path to your properties option. Then chose php include path and in the libraries folder add zend library location.