Reputation: 37499
VS Code will recognize available python packages and modules.
In this case, I started a VS Code session without a python package installed.
I then opened a terminal (in VS Code) and ran a pip install
command to install the missing packages (the python interpreter for this project is set to a virtualenv that lives inside my project directory). However, VS Code still shows these packages as unresolved.
If I close and reopen VS Code, it picks up the new packages. Is there a better way of getting VS Code to automatically pick up these changes than restarting?
Upvotes: 4
Views: 2486
Reputation: 71
Probably similar to restarting but Ctrl+Shift+P > Reload Window should do it, without clearing your opened files
Upvotes: 7