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!
If you want to force suggestions you can press ctrl + space (See IntelliSense features for more information)
-
You can use
.isort.cfg
in your project: see more details here. -
If your project contain
editor.rulers
option, extension will take the first value from there and assign it asline_length
for iSort. -
You can override line_length with option
importMagic.maxColumns
.
importMagic.multiline
: Imports can be aligned withbacklslash
orparentheses
. 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.importMagic.skipTestFolders
: Do not indexing test folders in your project. It's true by default.
- You must have installed python interpretor (and
"python.pythonPath"
in your settings). Python versions 3.4 and above are supported. - This extension will scan whole project root directory
- Alternatively, you may put some directories
"python.autoComplete.extraPaths"
and they'll be scanned explicitly
- It supports only Python3 interpreters.
- If you have problem with autocomplete make sure that
"python.autoComplete.extraPaths"
option contains the path with your source code. - Symbols from some packages may be unavialable when package contains the
__all__
variable. - Symbols may be unavialable when package doesn't have
__init__.py
- It doesn't scan any
test
folder and whatever deeper. Use"importMagic.skipTestFolders"
option to override it
- Tests :|
- I'll appreciate any merge request that will do this project better
- 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