Skip to content

Trim whitespace when deleting newline #134898

@OlafvdSpek

Description

@OlafvdSpek

When I delete a newline, I always have to delete the leading whitespace too. Could this whitespace be trimmed automatically?

void f() {
    int a = 1
        + 2;    
}

If the cursor is after the 1, I'd like one press of Delete to delete both the newline and the whitespace before the +.

Metadata

Metadata

Assignees

Labels

editor-commandsEditor text manipulation commandsfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions