Skip to content

Unable to remove unnecessary, trailing spaces in Python code #781

Description

@pkumarg-im

When writing code, we sometimes give spaces and move to a new line leaving spaces on an empty line or leave trailing space in the line which have some code.

Either way trailing spaces are ugly, and while committing Git gives warning of trailing spaces.

Option "Format Document" in vscode should remove these trailing spaces.

Tried giving command to Co-Pilot, but strangely for Co-Pilot this question was like "What !!!", it didn't do anything.
Opened as separate case for Co-Pilot here microsoft/vscode#264154

Is it possible to enhance autopep8 to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions