Skip to content

Format XML split attributes with closing tag on new line #435

@ecool

Description

@ecool

When working in vscode, I like to use the Alt+Up and Alt+Down keybinding for moving stuff around, and allowing for the ending of the tag to be on a new line if the attributes are aligned would be very helpful.

current:

<tag
    attr1=""
    attr2="" />

<tag
    attr1=""
    attr2="" >

proposed:

<tag
    attr1=""
    attr2=""
/>

<tag
    attr1=""
    attr2=""
>

proposed setting:
xml.format.splitAttributesCloseNewLine = true - only use if xml.format.splitAttributes = true.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions