Skip to content

Document Sorting of imports in Python #1676

@DonJayamanne

Description

@DonJayamanne

Update VS Code Docs for Python for the June release.
Python VS Code extension will be adding the ability to sort imports as is possible in TypeScript and JavaScript, see here https://code.visualstudio.com/updates/v1_23#_javascript-and-typescript-organize-imports

To enable this in Python one needs to add the following setting into their user or workspace settings (settings.json):

    "[python]": {
        "editor.codeActionsOnSave": {
            "source.organizeImports": true
        }
    }

Feature supported added in PR microsoft/vscode-python#1926

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions