Skip to content

vcFormat on-Enter leaves lines with trailing white space #6031

@Colengms

Description

@Colengms

When Enter is pressed on a line containing only white space, VS Code's editor.trimAutoWhitespace setting causes that white space to be removed. When using vcFormat, this functionality is circumvented, leaving behind lines containing only white space..

This is not an issue for vcFormat in VS, due to VS using virtual character positions.

To address this, we should check the editor.trimAutoWhitespace setting and, if enabled, include an additional edit to remove white space from the vacated line (if containing only white space).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions