Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: trim_trailing_whitespace only on modified lines #351

Open
dserodio opened this issue Apr 25, 2023 · 0 comments
Open

Feature request: trim_trailing_whitespace only on modified lines #351

dserodio opened this issue Apr 25, 2023 · 0 comments

Comments

@dserodio
Copy link

There's an open feature request for trim_trailing_whitespace = modified on the main repo (editorconfig/editorconfig#366). It's very unexpected when unrelated parts of a file are changed behind the scenes when one saves it, and that behavior is much more "Git-friendly". I struggled for a while yesterday with this.

But changing a spec is a long process, and I suspect this change won't ever be accepted because this change in particular "It's imposing too much on implementations to expect them to track changes in the file." as craigbarnes mentions in this comment.

Since the behavior of whether trim_trailing_whitespace should be applied to all lines or only modified lines is not defined by the spec, I propose the VS Code plugin behave like Jetbrain IDEs do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant