首页 > 学院 > 开发设计 > 正文

Eclipse xml 无自动提示

2019-11-06 08:26:34
字体:
来源:转载
供稿:网友

Eclipse开发java或Android项目时经常会遇到一个问题,编辑xml文件无法自动提示,比如常用的快捷键“Alt+/”,但是编辑java代码时却能够提示,下面说下解决方法:

1、Window->PReferences->XML->XML Catalog->User Specified Entries窗口中,选择Add 按纽        2、在Add XML Catalog Entry 对话框中选择或输入以下内容:Location: F:/soft/programmingSoft/Framework/Spring/spring-framework-2.5.6.SEC01-with-dependencies/spring-framework-2.5.6.SEC01/dist/resources/spring-beans-2.5.xsd(本地文件路径)Key Type: Schema LocationKEY: http://www.springframework.org/schema/beans/spring-beans-2.5.xsd

以上方法适用spring类框架xml配置提示。

还有一个场景,在填写类时无法自动提示,像编写java代码时可以直接“.”出来,但是xml不行,解决方法:

Help->MarketPlace,搜索Rinzo,安装,安装成功后重启eclipse,编辑xml默认使用Rinzo xml Editor打开,可以直接“.”出类提示。


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表