Skip to content

Newline at end of file #186

@sherif-fanous

Description

@sherif-fanous

This issue was previously discussed in #31

The problem is that the proposed workaround of using "files.insertFinalNewline": true only works when sorting a file using YAML Sort: Sort YAML or one of the YAML Sort: Custom sort options. It does not work with the YAML Sort: Recursively sort all files options.

As a result using YAML Sort: Recursively sort all files leads to a large number of files being flagged as modified by git due to the newline at the end of the file being trimmed.

It would be really useful to have an option to retain the newline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions