ITeye博客

eclipse PHP代码提示自动显示

xuepengcheng · 2010-11-12 01:07 · PHP · 编程语言 · PHP · Eclipse · Web · Markdown

  1. 打开 Eclipse的 Window -> Preferences -> PHP -> Editor ->Code Assist->Auto Activation打开里面的Enable auto activation选项,下面有个Auto activation triggers for PHP,后面的默认值是" $:>",随便改一下,然后 Apply, OK 。 EPP1.2.2中文版的路径是窗口->首选项->PHPeclipse web development ->PHP ->Code Assist ->打勾里面的Enable auto activation ->Auto activation triggers for PHP 2.打开 Eclipse的 File -> Export,在窗口中展开 General -> Perferences-->Export all然后点击 NEXT。然后点击"Browse"选择任意的一个路径,保存配置文件,然后点击"Finish"。

3.用记事本打开刚才保存的那个配置文件(扩展文件名:*.epf),按"ctrl + F",输入"content_assist_autoactivation_triggers_php"(或者可能是:contentAssistAutoactivationTriggersPHP),找到刚才字符串。把"$:>"(这是默认值,即=号后面的值)修改为"$:>abcdefghijklmnopqrstuvwxyz("(即代码中输入上述所有符号后都会自动代码提示),然后保存,退出记事本。

  1. 打开Eclipse的 File -> Import 然后在打开的窗口里展开 General -> Perferences,点击NEXT,选中刚才修改过的配置文件,Finish。
  2. 重启Eclipse就可以用了.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。