Eclipse autocomplete is not working for PHP-project

前端 未结 9 2217
眼角桃花
眼角桃花 2021-02-18 23:17

My Eclipse doesn\'t use auto-complete... My colleague get a whole list of suggestions by just typing some letters and I get nothing...

The Eclipse version I use is:

相关标签:
9条回答
  • 2021-02-18 23:51

    I did it by deleting ".metadata" directory on my main workspace :D

    0 讨论(0)
  • 2021-02-18 23:52

    Generally this can be activated by enabling Content Assist. It can be found on Window-Preference->PHP->Editor->Content Assist

    1. Setup your php_include_path. Go to the properties of the project. Then PHP Include Path.
    2. If you have any external library add it there too (I use Zend and Kohana).
    0 讨论(0)
  • 2021-02-18 23:57

    Check your .buildpath, try build something like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <buildpath>
        <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
        <buildpathentry kind="src" path="src"/>
        <buildpathentry kind="src" path="vendor"/>
        <buildpathentry external="true" kind="lib" path="common-libs/vendor/project-sample/lib"/>
    </buildpath>
    
    0 讨论(0)
提交回复
热议问题