eclipse PHP代码提示自动显示

1.打开 Eclipse的 Window -> Preferences -> PHP -> Editor ->Code Assist->Auto Activation打开里面的Enable auto activation选项,下面有个Auto activation triggers for PHP,后面的默认值是 “$:>”,随便改一下,然后 Apply, OK 。

2. 打开 Eclipse的 File -> Export,在窗口中展开 General -> Perferences–>Export all然后点击 NEXT。然后点击”Browse”选择任意的一个路径,保存配置文件,然后点击”Finish”。

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

4. 打开Eclipse的 File -> Import 然后在打开的窗口里展开 General -> Perferences,点击NEXT,选中刚才修改过的配置文件,Finish。

5. 重启Eclipse。

你可能感兴趣的:(eclipse,PHP,File,扩展,import,triggers)