Brendan Abel
Brendan Abel

Reputation: 37499

How to make VS Code update the Python autocomplete and installed modules caches?

VS Code will recognize available python packages and modules.

In this case, I started a VS Code session without a python package installed.

enter image description here

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

Answers (1)

NicoCMD
NicoCMD

Reputation: 71

Probably similar to restarting but Ctrl+Shift+P > Reload Window should do it, without clearing your opened files

Upvotes: 7

Related Questions