Eclipse(Eclipse for android)代码自动提示设置

时间:2023-03-08 17:47:17

java代码和xml资源代码在有的eclipse中可以自己提示,但有的并不支持这个功能,还得我们人为去调整,主要原因是因为你们下载的elipse的渠道不同,获得的版本有的官方原版,有的是个人备份版等等。下面我就以不自动提示的情况下教大家自己设置自动提示功能。

JAVA源码设置:Eclipse -> Window -> Perferences -> Java -> Editor -> Content Assist -> auto-Activation -> Enable auto activation -> (1. -> Auto activation delay(ms). 2. -> Prompt when these characters are inserted: . 3. -> Suggestion strategy.).

1.设置提示时间控制(你按下某个支持提示的字符(串)后系统在一定时间后自动弹出提示).         个人建议设置为100ms;

2.设置支持提示的字符.                                                               个人建议设置为"abcdefghijklmnopqrstuvwxyz.@";

3.一般不需要设置此选项.

XML资源代码设置:Eclipse -> Window -> Perferences -> XML -> XML Files -> Editor -> Content Assist -> auto-Activation -> Enable auto activation -> (1. -> Auto activation delay(ms). 2. -> Auto activation trggers for java. 3. -> Auto activation triggers for javadoc.).

1.设置提示时间控制(你按下某个支持提示的字符(串)后系统在一定时间后自动弹出提示).         个人建议设置为100ms;

2.设置支持提示的字符.                                                               个人建议设置为"abcdefghijklmnopqrstuvwxyz.@";

3.