Eclipse中解决自动补齐失效和完善Android自动补齐功能

一:今天学习Android时自动提示功能无缘无故不能用了,按网上提供的方法检查了下,Window -> Preferences -> Java -> Editor -> Content Assist -> Auto-Activation中的Enable auto activation选荐已被选中了。
还有提示说要在Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced配置页内Select the proposal kinds contained in the 'default' content assist list:中把Other Java Proposals选中,但我查看了一下我的列表中没有这一项,倒是把"Java Non-Type Proposals", "Java Proposals", "Java Proposals(Task-Focus)","Java Type Proposals"几项都选中,就可以了。如图:

Eclipse中解决自动补齐失效和完善Android自动补齐功能_第1张图片


二:在Android中添加自动补齐功能

Eclipse for android 设置代码提示功能

1、设置 java 文件的代码提示功能

打 开 Eclipse 依次选择 Window > Preferences > Java > Editor - Content Assist > Auto activation triggers for Java ,设置框中默认是一个点,

现在将它改为:.abcdefghijklmnopqrstuvwxyz(,

2、设置 xml 文件的代码提示功能

打 开 Eclipse 依次选择 Window > Preferences > Xml > Editor > Content Assist > Auto activation > Prompt when these characters are inserted ,设置框中默认是 <=: ,

现在将它改为:<=:.abcdefghijklmnopqrstuvwxyz(,

你可能感兴趣的:(Eclipse中解决自动补齐失效和完善Android自动补齐功能)