Skip to content

Make it easier to create virtual environments in "global" directories #1550

@lukas-lang

Description

@lukas-lang

I use a bunch of "globally accessible" virtual environments, all stored in ~/venv/. This path is added to "Global Search Paths", which makes it easy to use those environments for various workspaces. However: Creating a new virtual environment in that folder is effectively impossible using the UI (commands work of course). If it matters, I am using venv.

It would be nice if the "Custom" creation mode when clicking the "+" ("Create Environment") would give the option to create the environment in a folder different from the workspace root:

  • It would already help a lot if the prompt for the environment name expanded ~ and environment variables (e.g. %userprofile%) - this way, I could type ~/venv/name, and it would create the appropriate environment. As it stands, a folder literally called ~ or %userprofile% is created in the workspace root. Note that e.g. "Global Search Paths" already support ~, even on Windows.
  • Even better would be an option to select among the configured "Global Search Paths" to quickly create the environment in one of those. This way, I wouldn't have to remember the exact path to my global environments.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions