Answers for "vscode unresolved import but it works"

10

vscode not recognizing python import

# In .vscode/settings.json
"python.autoComplete.extraPaths": ["./path-to-your-code"],
Posted by: Guest on April-27-2020
2

python unresolved import vscode

# I use pylance now. I added this. Problem solved.
"python.analysis.extraPaths": ["./path-to-code/"],
# I tried this before, but not working. 
"python.autoComplete.extraPaths": ["./path-to-your-code"],
Posted by: Guest on September-25-2020

Code answers related to "vscode unresolved import but it works"

Python Answers by Framework

Browse Popular Code Answers by Language