Skip to content

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

Closed as not planned

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

Activity

  1. removed their assignment
    on Nov 2, 2025
  2. eleanorjboyd commented on Dec 8, 2025

    @eleanorjboyd
    Member

    Are you using the python environments extension as well?

  3. anthonykim1 commented on Dec 15, 2025

    @anthonykim1

    I think this might be old behavior from Python extension where we conda activate. Im not sure if we do this in env extension anymore

  4. github-actions commented on Jan 14, 2026

    @github-actions

    Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.

    Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

info-neededIssue requires more information from postertriage-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