1、在xml文件上右击-->open with ,看一下xml文件的默认打开方式。我遇到的是在Layout下的xml文件里没有提示信息。查看了一下xml的默认打开方式不是Android Layout Editor,这时需要修改xml文件的默认打开方式:设置默认打开方式为XML Editor。菜单:Window -> Preferences -> General -> Editors -> File AssociationsFile types:.xmlAssociated editors:XML Editor** -> Default在Associated editors选择框里点击“XML Editor*** ”,点击“Default”按钮。你将看到“XML Editor*** ”排在最上面,其变为“XML Editor(Default)*** ”。
2、一般情况下alt+/有代码提示作用,还有代码提示的快捷代码也不是alt+/,因此要恢复代码提示用alt+/.需要做两件事.在 Window - Preferences - General - Keys 内1、把word completion的快捷键设置alt+C2、把Content Assist的快捷键由ctrl+space改成alt+/如果还是不提示,极有可能是提示功能被关了.
3、菜单window->Preferences->Java->Editor->Content Assist->Enable auto activation 选项要打上勾2、window->Preferences->Java->Editor->Content Assist->Advanced 上面的选项卡Select the proposal kinds contained in the 'default' content assist list: 中把 Other Java Proposals 选项打上勾就可以了