pythonvisual-studio-codevscode-extensionspython-moduleauto-import

Python auto-import extension for VSCode


Is there a Python auto-import extension/plugin available for VSCode?

By auto-import I mean automatically importing of Python modules, so if you type sys.argv then it should automatically import the sys module. Eclipse and IntelliJ have this feature with Java.


Solution

  • VSCode team recently released Pylance

    Features

    • Docstrings
    • Signature help, with type information
    • Parameter suggestions
    • Code completion
    • Auto-imports (as well as add and remove import code actions)
    • As-you-type reporting of code errors and warnings (diagnostics)
    • Code outline
    • Code navigation
    • Code lens (references/implementations)
    • Type checking mode
    • Native multi-root workspace support
    • IntelliCode compatibility
    • Jupyter Notebooks compatibility