Skip to content

Provide Line Ending option #285

@CyberBotX

Description

@CyberBotX

Is your feature request related to a problem? Please describe.
I usually prefer to have LF as my line endings instead of CRLF. Although I use an extension, Line Endings Unifier, to accomplish this, XAML Styler will always change the line endings to CRLF. Even if Line Endings Unifier changes the line endings afterwards, the result is that Visual Studio will claim the entire file has been changed because of the line endings being switched back and forth.

Describe the solution you'd like
I'd like to see an option in XAML Styler to set the line endings, with the options being CRLF, LF or CR (basically Windows, Unix and Mac line endings).

Describe alternatives you've considered
Using Line Endings Unifier does fix the line endings (when set to apply to .xaml) after saving and does so after XAML Styler has fixed the formatting. It does not get around the problem described at the top regarding Visual Studio showing the entire file as changed.

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