Eclipse autocomplete is not working for PHP-project

前端 未结 9 2215
眼角桃花
眼角桃花 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:40

    If this happens only for one project in Eclipse and others are autocompleting correctly, it sometimes happen when you create new PHP project and press Finish on the first page.

    To fix it, remove the project from Eclipse (Windows > Show view > Navigator and press DELETE on the project). Then go to project folder and delete file .project and folder .setting.

    In Eclipse now select File > New > PHP project, select name and folder, press Next and verify (or manually add) that root folder of the project is listen on Source tab.

    Then click Next and add root folder of the project or folders that contain PHP files into Build path. Now you can click Finish.

    Note: adding Source and Build paths into existing project usually does not fix this problem and you really have to delete and create new project.

提交回复
热议问题