設置eclipse中xml的默認編輯器、行數、xsd和dtd .

一、指定文件的默認打開方式
Window - Preferences - General - Editors - File Associations - 選擇文件類型指定Associated editors(如xml指定XML Editor) - Default

選擇xml - open with - xml editor

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

二、設置eclipse顯示行數
Windows->Perference->General->Editors->Text Editor將show line numbers

三、設置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
相關文章
相關標籤/搜索