Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>auto-virtualenvwrapperNew to Visual Studio Code? Get it now.
auto-virtualenvwrapper

auto-virtualenvwrapper

Javier Lopez

|
4,275 installs
| (1) | Free
Automatically activate Python virtual environments (created with virtualenvwrapper) as you navigate the source code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

auto-virtualenvwrapper

Automatically activate Python virtual environments as you navigate the source code.

This is useful if you are working with a monorepo that contains sub-projects, modules, libraries or deployments with different Python dependencies. Or perhaps you want to automatically activate a development environment when you click on a test file.

Credits to PythonEnvy, inspiration and reference for creating this extension.

Features

As you can see in the following demo, the active Python environment changes as soon as a file is loaded into the editor. The environment is set by looking for the first virtual environment with matching name to the containing directory. If none is found, we look for the upper directory, and so on.

demo

Requirements

The Python extension must be enabled for this to work.

Extension Settings

This extension has the following setting:

  • autoVirtualenvwrapper.virtualenvsPath: Path to virtualenvwrapper virtual environments directory. Defaults to /.virtualenvs. If you are on Mac, it probably is something similar to /Users/javier/.virtualenvs.

Known Issues

N/A

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft