Skip to content

files.trimTrailingWhitespace does not trim trailing whitespace on save #299

@chrisjaquet

Description

@chrisjaquet

The setting files.trimTrailingWhitespace does not seem to trim trailing whitespace when a file is saved. Is this a deliberate decision?

I do not want to format the entire document when saving (using e.g. editor.formatOnSave) as this will affect other file types as well (and I occasionally use custom formatting for clarity).

Extension Details
Name: XML
Id: redhat.vscode-xml
Version: 0.13.0

VSCode Details
Version: 1.47.3 (user setup)
Commit: 91899dcef7b8110878ea59626991a18c8a6a1b3e
Date: 2020-07-23T13:12:49.994Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions