Python auto-completion in Visual Studio Code for Pipenv project

pillyshi
Jan 6, 2021

--

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:https://www.youtube.com/channel/UC-SHOllZQsQFCsbL3BvP1rA

The content might be updated in the future.

--

--

pillyshi
pillyshi

Written by pillyshi

Machine Learning Engineer / Youtube streamer. I will share useful information about engineering.

No responses yet