How to make VS Code aware of the venv environment and its benefits
environment
- macOS
- VSCode 1.40.1
- Python3.6.0
Make VS Code aware of the venv environment
.vscode/settings.Added the following to json (below is python-m venv .When creating a virtual environment with venv)
#### **`.vscode/settings.json`**
"python.venvFolders": [
".venv"
]
Select "Python: Select Interpreter" with `` `Command + Shift + P``` in VS Code, and from the displayed list, `` .venv``` Python (./venv/) set above Select (bin / python, etc.)
# merit
Linter will recognize the libraries installed in your virtual environment, so you won't get a "Not found warning even though it's installed!"