Skip to content

Document Sorting of imports in Python #1676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DonJayamanne opened this issue Jun 11, 2018 · 1 comment
Closed

Document Sorting of imports in Python #1676

DonJayamanne opened this issue Jun 11, 2018 · 1 comment
Assignees
Labels

Comments

@DonJayamanne
Copy link
Contributor

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

@DonJayamanne DonJayamanne changed the title Document Sorting of imports Document Sorting of imports in Python Jun 11, 2018
kraigb added a commit that referenced this issue Jun 28, 2018
@kraigb
Copy link
Contributor

kraigb commented Jun 28, 2018

Cool stuff; I didn't know about using scoped settings like that. :)

@kraigb kraigb closed this as completed Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants