Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 973
Brendan Abel Avatar asked Nov 14 '25 21:11

Brendan Abel


1 Answers

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

like image 200
NicoCMD Avatar answered Nov 17 '25 10:11

NicoCMD



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!