Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>py-sort-importsNew to Visual Studio Code? Get it now.
py-sort-imports

py-sort-imports

Janson

|
2,476 installs
| (1) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

py-sort-imports README

This extension depends on python and some packages, so make sure to install packages in correct python version.

Install dependencies: pip3.8 install isort yapf

Sample config:

{
    "pySortImports.python": "python3.8",
    "pySortImports.sortImports.enabled": true,
    "pySortImports.yapf.enabled": true,
    "pySortImports.yapf.styleFile": "/tmp/.yapf-styles.conf",
}

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft