Python auto import extension for VSCode

Soumitri Pattnaik picture Soumitri Pattnaik · Oct 14, 2017 · Viewed 44.6k times · Source

Is there a Python auto import extension/plugin available for Visual Studio Code?

By auto import I mean, auto import of python modules. Eclipse and Intellij has this feature with Java.

Answer

Eyal Levin picture Eyal Levin · Jul 1, 2020

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