I have read and tried a lot but am still struggeling with correctly configuring IntelliSense, ie, VSCode's autocomplete for my Python projects.
It works fine within a single Python project. But I have a workspace with two of my projects open at the same time since one of them is imported and used inside the other.
For simplicity, let's call them myProjectA
and myProjectB
. Inside myProjectA
, I get correct autocomplete (incl. suggestions and auto import) for myProjectA
but not for myProjectB
, which is used inside A.
How can I configure VSCode to show auto suggestions of myProjectB
in myProjectA
?
I have tried adding
"python.autoComplete.extraPaths": [
"myProjectB"
]
to my config, but it doesn't change anything. Do I need to provide the full path to myProjectB? Or do I need to configure something else?
it wasn't working for me until i added the path to "python.analysis.extraPaths" as well:
"python.analysis.extraPaths": [
"path\\to\\directory"
],
"python.autoComplete.extraPaths": [
"path\\to\\directory"
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With