xxxxxxxxxx
Open folder in VS Code
Type following command in terminal
python -m venv D:\.vscode\Python\Selenium\demo1\venv
( venv=virtual Environment
D:.vscode\Python\Selenium\demo1=path of your current folder
\venv=name of your virtual environment )
Then, type Ctrl+Shift+P, select interprerter i.e. python.exe path
which is inside "\venv\Scripts\"