Stop switching venvs manually. Auto-activates uv environments for standard projects with pyproject.toml and PEP-723 inline scripts the second you change tabs.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Show a notification when the Python interpreter is changed.
How It Works
When you open or switch to a .py file that contains PEP 723 inline script metadata (# /// script), the extension runs uv python find --script <file> and sets the returned interpreter.
For all other files it runs uv python find from the workspace folder, which respects pyproject.toml, .python-version, and uv's own resolution rules.
The interpreter is only updated when it differs from the currently active one to avoid unnecessary churn.
Release Notes
1.0.0
Initial release — automatic venv activation via uv python find and uv python find --script.