eclipse xml文件中按没有提示
轉載自??eclipse xml文件中按沒有提示
方案1:在xml文件上右擊-->open with ,看一下xml文件的默認打開方式。我遇到的是在Layout下的xml文件里沒有提示信息。查看了一下xml的默認打開方式不是Android Layout Editor,這時需要修改xml文件的默認打開方式:
設置默認打開方式為XML?Editor。
菜單:Window?->?Preferences?->?General?->?Editors?->?File?Associations?
File?types:?*.xml
Associated?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+C
2、把Content?Assist的快捷鍵由ctrl+space改成alt+/
如果還是不提示,極有可能是提示功能被關了.
如下:
1、菜單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?選項打上勾就可以了
總結
以上是生活随笔為你收集整理的eclipse xml文件中按没有提示的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 玩赛博朋克电脑配置多少钱(玩赛博朋克电脑
- 下一篇: 解决“Maven项目中的Dynamic