facebook

XML Editor Tabbing Question [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #216003 Reply

    merelin
    Member

    Hi!

    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>

    #216014

    Scott Anderson
    Participant

    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.

    #216027

    merelin
    Member

    @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>

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: XML Editor Tabbing Question [Closed]

You must be logged in to post in the forum log in