2012-10-23 3 views
1

xml 파일을 이클립스 형식으로 만들려고하면 각 줄을 새 줄에 넣습니다. 대신에 각 속성을 한 줄에 넣고 싶습니다. 예를 들어 지금 내가 CTRL + SHFT + F를 누를 때, 이클립스는 이것을 이렇게 포맷합니다. 당신이 가서 그가 XML 편집기 환경 설정 페이지 TOT와 더 이상 줄 수 있도록 옵션을 변경하려면 eclipse.org에서 XML 편집기를 사용하는 경우이클립스에서 XML 파일 서식 지정

<hibernate-mapping package="com.server.entities"> 
<class 
    name="Branch" 
    table="Branch" 
> 
    <meta attribute="sync-DAO">false</meta> 
    <id name="Id" 
     type="java.lang.Long" 
     column="id" 
    > 
     <generator class="native"/> 
    </id> 

    <property 
     name="Created" 
     column="created" 
     type="timestamp" 
     not-null="false" 
     length="23" 
    /> 
    <property 
     name="LastUpdated" 
     column="lastUpdated" 
     type="timestamp" 
     not-null="false" 
     length="23" 
    /> 
    <property 
     name="CreatedBy" 
     column="createdBy" 
     type="java.lang.Long" 
     not-null="false" 
     length="19" 
    /> 

하지만 내가 원하는 것은

<hibernate-mapping package="com.kaizen.report.server.entities"> 
<class name="Branch" table="Branch"> 
    <meta attribute="sync-DAO">false</meta> 
    <id name="Id" type="java.lang.Long" column="id"> 
     <generator class="native"/> 
    </id> 

<property name="Created" column="created" type="timestamp" not-null="false" length="23"/> 

답변

2

입니다 여러 속성을 새로운 행으로 분리하지 않습니다.