If you are like me and have a virtual environment at /home/me/Documents/src/py/lrvenv and have your project at /home/me/Documents/src/py/lrproject and you would like to get rid of red squigglies from Visual Studio Code, use
version two.
All you need to do is open the terminal and do two things
- source bin/activate
- code .
You can combine these two actions into one which looks something like
source /home/me/Documents/src/py/lrvenv/bin/activate && code /home/me/Documents/src/py/lrproject
This assumes you have all the pieces in place, of course.