您的位置:首页 > 编程语言 > Java开发

设置eclipse中xml的默认编辑器、行数、xsd和dtd .

2013-04-10 16:46 309 查看
1、指定文件的默认打开方式
Window - Preferences - General - Editors - File Associations - 选择文件类型指定Associated editors(如xml指定XML Editor) - Default

选择xml - open with - xml editor

用xml editor打开的xml按alt + /有提示信息

2、设置eclipse显示行数
Windows->Perference->General->Editors->Text Editor将show line numbers


3、设置xsd和dtd
Window - Preferences - XML - XML Catalog - User Specified Enteries - Add

Location:E:\Tools\ProgramTools\MyBatis\mybatis-3-mapper.dtd
Key type:URI
Key:http://mybatis.org/dtd/mybatis-3-mapper.dtd

Location:E:\Tools\ProgramTools\spring\spring-beans-3.1.xsd
Key type:Schema location
Key:http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: