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

Formatting support for trim trailing whitespace #250

Closed
xorye opened this issue Apr 28, 2020 · 0 comments · Fixed by #279
Closed

Formatting support for trim trailing whitespace #250

xorye opened this issue Apr 28, 2020 · 0 comments · Fixed by #279
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@xorye
Copy link

xorye commented Apr 28, 2020

The difference between files.trimFinalWhitespace and files.trimFinalNewlines, is that files.trimFinalNewlines will trim final newlines and spaces, while files.trimTrailingWhitespace removes trailing spaces on each line.

ie, if _ were spaces:

<a><a>\n
___\n
___\n
\n

would become

<a><a>\n
\n
\n
\n

Since vscode-xml supports files.trimFinalNewlines and files.insertFinalNewline, it would be cool to have files.trimTrailingWhitespace just so that it is consistent with the preferences VS Code has to offer.

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

Successfully merging a pull request may close this issue.

2 participants