Skip to content

Autocomplete imports from subdirectories #18614

Discussion options

You must be logged in to vote

Oh my gosh... this problem fixed itself. After restarting VSCode, this line was automatically added to my settings:

"python.analysis.extraPaths": ["./backend"]

When I have both this and "python.autoComplete.extraPaths": ["./backend"] set, imports work exactly as I want them to.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@matthew-mcallister
Comment options

@brettcannon
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by matthew-mcallister
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.
2 participants