| Marketplace
Sign in
Visual Studio Code>Other>ImportmagicNew to Visual Studio Code? Get it now.

Importmagic

Brainfit

|
20,071 installs
| (8) | Free
Python auto imports
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info


logo
vscode-importmagic

Marketplace Version

It helps to find unresolved imports

This Visual Studio Code extension allows to find unresolved symbols in your Python projects and helps to import them.

⚠️ Since version 0.2.0 it supports Python3 only!

Demo

Demo

If you want to force suggestions you can press ctrl + space (See IntelliSense features for more information)

Configuration

  1. You can use .isort.cfg in your project: see more details here.

  2. If your project contain editor.rulers option, extension will take the first value from there and assign it as line_length for iSort.

  3. You can override line_length with option importMagic.maxColumns.

  • importMagic.multiline: Imports can be aligned with backlslash or parentheses. By-default this option is undefined. Alignment will be applied with iSort defaults.
  • importMagic.indentWithTabs: Make tab indents instead four spaces. By-default this option undefined.

Install notes

  • You must have installed python interpretor (and "python.pythonPath" in your settings). Python versions 3.4 and above are supported.
  • This extension will scan project root directory and all directories from "python.autoComplete.extraPaths".

Caveats

  1. It supports only Python3 interpreters.
  2. If you have problem with autocomplete make sure that "python.autoComplete.extraPaths" option contains the path with your source code.
  3. Symbols from some packages may be unavialable when package contains the __all__ variable.
  4. Symbols may be unavialable when package doesn't have __init__.py

Roadmap

  • Tests :|

License

MIT

  • Some parts of code based on https://github.com/DonJayamanne/pythonVSCode
  • This extension based https://github.com/alecthomas/importmagic
  • Also we use Whoosh https://bitbucket.org/mchaput/whoosh/overview
  • iSort prepares import blocks: https://github.com/timothycrosley/isort
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft