Option to select virtual env from other project #20352
Labels
area-environments
Features relating to handling interpreter environments
community ask
Feature request that the community expressed interest in
feature-request
Request for new features or functionality
needs community feedback
Awaiting community feedback
How about an option that allows you to select a virtual environment from another project? Currently, this is only possible with copy+paste of the whole interpreter path, e.g.
~/Downloads/projectA/.venv1/bin/python
.Instead, it would be nice to have an overview of all virtual environments of all projects (or maybe even the environments of the most recent used projects).
The command
> Python: Select interpreter
could e.g. look like this:I've made a similar issue for Jupyter kernels: microsoft/vscode-jupyter#12292
And I've mentioned this here as feedback for the Jupyter kernel picker: microsoft/vscode-jupyter#12521
Showing the folder name in projectA (maybe even with bold font) would be very useful, as the environment name
.venv
will be present in lots of local projects (e.g. because they were created with poetry).Side note :
When I have a project with multiple environments in sub-folders, they show up in the menu. (This is great, and just to mention it here: that does not happen with the jupyter kernel picker, as reported in microsoft/vscode-jupyter#12521)
Question: Is there maybe a better way to list them? E.g. like .venv1, .venv2, .venv3, .venv4 . I don't see a good reason why venv2 is recommended and the others are not.
The text was updated successfully, but these errors were encountered: