For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 2 replies, 2 voices, and was last updated 21 years, 2 months ago by
merelin.
-
AuthorPosts
-
merelinMemberHi!
I’ve tried MyEclipse XML Editor (MyEclipse 3.8.1 trial 30-days) and it seems there is a bug with indentation. I hate using tabs as indents.
So in “Window/Preferences/MyEclipse/Editors/XML/XML Source” I unchecked “Indent using tabs”.
After that I opened xml file in source editor tab and investigated that every time I pressed tab button I had tab char inserted (not spaces!!!).This is definitely a bug!
It’s very important for me to use spaces instead of tabs as indents.Merelin <merelin@mail.ru>
September 27, 2004 at 8:39 am #216014
Scott AndersonParticipantMerelin,
The “use spaces” setting in the XML editor controls what character is used
by the editor when *it inserts indentation* as part of automatically
formatting your input. For example, if you have an indented opening tag and
hit return, the editor will automatically indent using either spaces or
tabs, depending on what you have selected. However, it will not currently
re-interpret what you type, based on this preference. So, if you
specifically type a tab, you’ll still get a tab, no matter what the
settings. I realize that this might be confusing since it does not match
what the Java editor does, so I’ve entered a problem report so we can
address it in the next release.Also, please note that the XML formatter, available on the Source menu when you’re editing, will replace tabs for spaces when it formats the document, if that’s the setting you’re using. This might be a nice workaround for you in the interim.
September 27, 2004 at 9:00 am #216027
merelinMember@support-scott wrote:
Merelin,
The “use spaces” setting in the XML editor controls what character is used
by the editor when *it inserts indentation* as part of automatically
formatting your input. For example, if you have an indented opening tag and
hit return, the editor will automatically indent using either spaces or
tabs, depending on what you have selected. However, it will not currently
re-interpret what you type, based on this preference. So, if you
specifically type a tab, you’ll still get a tab, no matter what the
settings. I realize that this might be confusing since it does not match
what the Java editor does, so I’ve entered a problem report so we can
address it in the next release.Also, please note that the XML formatter, available on the Source menu when you’re editing, will replace tabs for spaces when it formats the document, if that’s the setting you’re using. This might be a nice workaround for you in the interim.
Yes, exactly. It is confusing.
I suppose either there should be a separate option “spacesForTabs” or this option should behave in a more generic fasion.
It would be great if the next release contains more generic solution.I’ve found this workaround and it seems to be a kind of temporary solution. But the problem still remains and it needs fixing ASAP.
Thank you for reply! 🙂
Best regards,
Merelin <merelin@mail.ru> -
AuthorPosts
