virtualenvvscode-extensionsvscode-python

Using Python environments in VS Code outside of python files


The Python vscode extension allows us to select venv as well as python interpreters. I seems like the Python extension is only started when opening a .py file. So before that, it is not possible to use it to switch env. I would like to create a vscode extension allowing me to do the same for other types of files. (so without the need of opening a .py file) Is this possible? How should it be done?

Thx a lot,


Solution

  • what I was looking for is adding

    "extensionDependencies": [
        "ms-python.python"
    ],
    

    in the package.json of my extension