Check the location of the generated modules.
Download the visual studio code extension for Python and restart the visual studio code.
Add the path for the auto completion from Visual Studio.
- Click File > Preferences > Settings.
- Search
Auto Complete
under the Workspace tab - Find Python > Auto Complete: Extra Paths click on 'Edit in settings.json'
- On
settings.json
page, add the generated modules path forpython.autoComplete.extraPaths
python.analysis.extraPaths
- Example of settings.json
{
"python.analysis.extraPaths": [
"<path-to-generated-modules>"
],
"python.autoComplete.extraPaths": [
"<path-to-generated-modules>"
]
}