Skip to content

Improve xml.format.splitAttributes settings #631

Open
@informatik01

Description

@informatik01

Hi.

Currently when xml.format.splitAttributes is set to true, all the attributes appear each on a new line, like this:

<tag
        type="sample"
        name="foo"
        value="bar">

It would be really nice to be able to leave the very first attribute on the same line as the opening tag
and all the other attributes could be aligned by the beginning of this first attribute, like this:

<tag type="sample"
     name="foo"
     value="bar">

Like add an additional option to either leave the first attribute on the same line as the opening tag OR make each attribute appear on a separate line. And if the "leave the first attribute on the same line" is selected then its beginning should be the start of alignment for all the subsequent attributes.

I am just used to how the "XML Tools Plugin" in Notepad++ does it, so I didn't expect to see the first attribute also on a separate line.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions