Using Pipenv with Visual Studio Code (VS Code)

Run pipenv --venv in the root directory of your pipenv project. It will return something like /Users/[username]/.local/share/virtualenvs/[project]-[random_string] on Mac.

Put this path into the .vscode/settings.json file of your project:

{
  "python.defaultInterpreterPath": "[PATH_GOES_HERE]",
}