eclipse开发android程序 自动提示内容为空

转自:http://my.oschina.net/u/565871/blog/112684

今天从同学那里拷来eclipse 和 android sdk  运行后发现 写代码的时候 alt+/ 提示的内容为空,于是就上网去查,在百度中查到了如下方法:

 1、菜单window->Preferences->Java->Editor->Content Assist->Enable auto activation 选项要打上勾

 2、windows-->preference-->workbench-->keys 下设置Content Assist 的快捷键

 3、window->Preferences->Java->Editor->Content Assist->Advanced 上面的选项卡Select the proposal kinds contained in the 'default' content assist list: 中把 Other Java Proposals 选项打上勾就可以了

我使用的elipse 是 图标类似西瓜,启动界面显示android developer tools的版本 ,我是使用第三条解决的,但是并没有发现Other Java Proposals选项 ,我就将最上面的选项卡里的都选上了。

 

经验证,以上做法在西瓜版 ADT上设置有效。



 

猜你喜欢

转载自cshbbrain.iteye.com/blog/1845473