用Eclipse编辑AndroidXML文件,配置自动提示。 - 好代码编程网

在Eclipse下开发Android应用时,避免不了编辑xml文件,如layout、string、drawable等等。

Android xml体系庞大,很多开发者都是记者标签的关键字,所以在编辑xml文件时自动提示必不可少。但是很多人遇到在Eclipse中编辑xml没有自动提示的问题。按快捷键也不成。

下面介绍一下在Eclipse的Editor下为Android xml编辑配置自动提示的方法。

 

首先说明我的Eclipse是在android 官网上下载的Android ADT Bundle 当然,此方法同样适用于普通的Eclipse。

下载地址:http://developer.android.com/sdk/index.html

 

依次打开:Window > Preferences > Xml > Editor > Content Assist > Auto activation > Prompt when these characters are inserted

编辑框中文本为:<=:.abcdefghijklmnopqrstuvwxyzQWERTYUIOPASDFGHJKLZXCVBNM(,

搞定。

 

posted on 2014-12-15 16:45  Seven1979  阅读(293)  评论(0编辑  收藏  举报