Python auto-completion in Visual Studio Code for Pipenv project

In order to make writing codes fast, completion is quite important. In this post, I introduce the way to enable completion in Visual Studio Code (vscode) for Pipenv project.

If you create Python project by following my previous post, .venv/ is created at the project root. You can enable completion by let vscode see this .venv/ . To do so, Select Code -> Preferences -> Settings , and enter python venv path` to search bar, then set .venv like this:

Code -> Preferences -> Settings

Whenever you edit Python project using vscode, open vscode by the command like this:

cd project-name
pipenv shell
code .

The setting for the completion is done. Thanks for reading.

This post is linked to my Youtube channel:

The content might be updated in the future.