If you do not make any settings when developing Python with VS Code Since only the standard library has intellisense enabled, the development speed will be slowed down. Set so that intellisense is effective even when using an external library as well as the standard library.
pipenv --venv
Command execution result image
#The path of the virtual environment is displayed
/Users/xxx/work/fastapi-demo/.venv
There is an external library in site-packages
under .venv
path
/Users/xxx/work/fastapi-demo/.venv/lib/python3.8/site-packages/
Set the path to 2 in python.autoComplete.extraPaths
Recommended Posts