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