Skip to content

vscode opens the terminal to automatically execute the environment activation command, and opens the cmd window #25557

@WEN0115-L

Description

@WEN0115-L

When I open vscode to create a new terminal, he will always execute the conda activate xxx command by himself, and then jump out of the system's cmd terminal black box and then automatically close, not directly open my pre-selected environment , which causes me to wait for him to automatically execute the environment activation command every time I create a new terminal before proceeding to the next step, very slow, and sometimes the terminal will freeze, but this situation has not happened before. This is why, ask for an answer. I tried modifying the setting.josn file and trying to change the vscode version to the old version, but it didn't work.

Specifically speaking,When I create a new terminal in VS Code, it first opens the base virtual environment, and then it automatically executes two commands. First, it runs D:/Anaconda/Scripts/activate, and then it automatically runs conda activate ML to activate the virtual environment preset for my code. Previously, when I used it, opening the terminal would directly activate my ML virtual environment without the two preceding command steps.

I hope it will be like before, creating a new terminal that directly enters the preset environment without automatically executing the activation commands for those two environments, speeding up the terminal's performance.

As shown in the picture:

Image

Metadata

Metadata

Assignees

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions