Community
Participate
Working Groups
When I press enter in the XML editor it should indent the new row according to the preferences. This is done in the other editors and doens't seem like a difficult thing to implement.
Actually, autoindent is working by design. When you press enter, the new line has the same indentation as the previous line. Is that what you're seeing?
Yes that is what I'm seeing but I don't agree that that's the way it should work. The only time when I'd like to stay on the same column is when I enter a closing tag otherwise I want it to be indented according to the preferences (tag or spaces). That is the way it works in the other editors.
The way auto-indent is working now is the default behaviour of all text editors in eclipse. We would like to preserve this behaviour because we have specifically been asked to have this behaviour by our users. However, I can also see the need for your auto indent feature. The Java editor has both modes of auto indent. If you are in Smart Insert Mode (Edit->Smart Insert Mode) the auto indent will behave like you want it. If it's off, auto indent will indent to the same as the previous line. We could probably do something similar. And, seeing as how you said in your first comment "doesnt seem like a difficult thing to implement" we'd gladly accept a patch from you :)
Sound like another case where we there's a certain hierarchy of preferences, "work like text editors", "work like source editors", "do XYZ".
mass reassignment of my bugs to xml-inbox