Skip to content

Exclude some XML files from formatting #389

@shiraze

Description

@shiraze

Description
I have "auto-format on save" turned on in VSCode. I also have some XML files, with an "myd" extension that I don't want to be formatted when I make a change, e.g. I want to change a node value but don't want the whole XML file reformatted. Can I exclude some files (based on extension) from formatting when saving?

Current Workarounds
I have to change the "Language mode" to "Ignore" before making changes. After saving, I then change back to "XML" for helpful colour coding.
Alternatively, I disable this extension: I get the useful colour coding from VSCode, and don't have files reformatted on Save, but I can't selectively format XML that I would like to format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions