Help! Paste of xml indentation is wrong

Hi,

I have IntelliJ Idea 8.01.

If I have some XML

<test>
    <test2>
        <test3>
        This is some contents
        </test3>
        <test4>
        contents
        </test4>
    </test2>
</test>

If I CUT (ctrl x) the XML of test4 then paste it back into its current place the indentation is wrong. It is two spaces to the left of where it should be.
This is VERY important as I do a lot of cut and paste, I don't want to have to fix the spacing every time. When I paste it will look like this!


<test>
    <test2>
        <test3>
        This is some contents
        </test3>
      <test4>
      contents
      </test4>
    </test2>
</test>

Help ! Urgently !

Philip

1 comment
Comment actions Permalink

please check you indent settings for xml file type

philip andrew wrote:

Hi,

I have IntelliJ Idea 8.01.

If I have some XML

<test>
<test2>
<test3>
This is some contents
</test3>
<test4>
contents
</test4>
</test2>
</test>

If I CUT (ctrl x) the XML of test4 then paste it back into its current place the indentation is wrong. It is two spaces to the left of where it should be.
This is VERY important as I do a lot of cut and paste, I don't want to have to fix the spacing every time. When I paste it will look like this!


<test>
<test2>
<test3>
This is some contents
</test3>
<test4>
contents
</test4>
</test2>
</test>

Help ! Urgently

Philip

---
Original message URL: http://www.jetbrains.net/devnet/message/5232040#5232040



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.