How to enable autocomplete/syntax-highlight for PHP core functions in Eclipse?

后端 未结 8 1775
小鲜肉
小鲜肉 2020-12-14 16:19

I searched a lot, checked many times the neccesary steps, but it still don\'t work.

My environment is :

  1. Latest eclipse for PHP developer package

相关标签:
8条回答
  • 2020-12-14 16:27

    Right-Click on your project -> Configure -> Add PHP Support...

    Works for me on Eclipse 3.5 / PDT 2.1

    0 讨论(0)
  • 2020-12-14 16:31

    If issue is still exists, follow the following steps:

    1. Remove project from eclipse.

    2. Goto your project folder and remove .Settings folder and .project file.

    3. Again import php project with different name.

    it's work for me.

    0 讨论(0)
  • 2020-12-14 16:40

    Nothing helped, but this:

    In Eclipse:

    Go to Window -> Preferences -> General -> Editors -> File Associations

    Click Add

    Type *.php

    Under Associated Editors choose PHP Editor and click Default on the right.

    Close and open your php file.

    0 讨论(0)
  • 2020-12-14 16:43

    Right-Click on your project -> Configure -> Convert to PHP Project...

    Works for me on Eclipse 4.6 / PDT 5.2

    0 讨论(0)
  • 2020-12-14 16:46

    There are 3 .dll files: model.h2.db, model.lock.db and model.trace.db under workspace/.metadata/.plugins/org.eclipse.dltk.core.index.sql.h2

    Remove these files and restart Eclipse.

    0 讨论(0)
  • 2020-12-14 16:48

    For me, nothing worked, except:

    1. Backup and then delete the .db files under: /.metadata/.plugins/org.eclipse.dltk.core.index.sql.h2/
    2. Restart eclipse.

    I got this tip from #4 in: http://www.nwiresoftware.com/blogs/nwire/2010/09/five-tips-speeding-eclipse-pdt-and-nwire

    0 讨论(0)
提交回复
热议问题