In my project folder I created venv folder.
python -m venv venv
When I in VS Code run command select python interpreter my ven
select python interpreter
Many have mentioned the python.pythonPath method.
python.pythonPath
Another way is adding a envFile in the launch.json like this:
envFile
launch.json
{ "name": "Run", "etc": "etc", "envFile": "${workspaceFolder}/venv" }