Den Kasyanov
Den Kasyanov

Reputation: 978

Ignore Conda virtual environments in VSCode

I have Python versions and virtual environments managed by Pyenv. I use them to work on projects using Visual Studio Code.

I also have Conda (from Anaconda package) installed to run Jupyter notebooks. I never want to use conda environments in VSCode (I am not even sure if they are of the same type as normal virtual environments, never was able to fully wrap my head around this).

Is there a way to hide all existing and future conda-managed Python versions and conda (virtual) environments from VSCode when I am choosing an interpreter there?

Upvotes: 2

Views: 485

Answers (1)

Steven-MSFT
Steven-MSFT

Reputation: 8431

It's impossible for now. Where the extension looks for environments.

The extension automatically looks for interpreters, and haven't provided any settings to change this default behavior. If you really want to change it, you only can modify the extension to change the logic of interpreter searching. I tried, but sorry, I can't find out where it is.

Upvotes: 1

Related Questions