如果想让代码自动提示,可以进行如下设置
1)安卓文件自动提示
Window->Preferences->Java->Editor->Content Assist->Auto Activation
将Auto activation triggers for Java中的默认的一点替换为.abcdefghijklmnopqrstuvwxyz(,
2)xml文件自动提示
Window->Preferences->XML->XML Files->Editor->Content Assist->Auto Activation
将Prompt when these characters are inserted中的<=:替换为<=:.abcdefghijklmnopqrstuvwxyz(,
如果需要代码在需要的时候进行提示
在没有完成的代码后面按快捷键alt+“/”代码提示就会出现,当然可以到Eclipse设置中
配置此快捷键的按钮。
1)安卓文件自动提示
Window->Preferences->Java->Editor->Content Assist->Auto Activation
将Auto activation triggers for Java中的默认的一点替换为.abcdefghijklmnopqrstuvwxyz(,
2)xml文件自动提示
Window->Preferences->XML->XML Files->Editor->Content Assist->Auto Activation
将Prompt when these characters are inserted中的<=:替换为<=:.abcdefghijklmnopqrstuvwxyz(,
http://jingyan.baidu.com/article/bad08e1e8d719809c85121f6.html
Eclipse自动提示的快捷键是“Alt + /”。
查看快捷键方法:
①启动Eclipse,zai菜单栏选择【Window】==>【Preferences】。
②找到【General】==>【Keys】,窗口右边就会出现所有快捷键。