Skip to content

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

@WEN0115-L

Description

@WEN0115-L

Problem:
When creating a new terminal in VSCode (v1.102), it automatically enters the base environment and then automatically executes commands:

D:/Anaconda/Scripts/activate
conda activate ML

causing:

Visible cmd terminal flash
5-10 second startup delay
Occasional freezes

Expected Behavior:

Direct opening in ML environment (instant) without visible commands.

Troubleshooting Attempted:

Toggled python.terminal.activateEnvironment (true/false)
Downgraded to VS Code v1.85 (issue persists)

System & Extension Details:

OS: Windows 11
Conda: v24.11.3 (path: D:/Anaconda)

Explicit Question: What configuration (VSCode/Conda) will open terminals directly in ML without visible activation sequences?

this is my setting.json:
`{
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\Sysnative\cmd.exe",
"${env:windir}\System32\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"Git Bash": {
"source": "Git Bash"
},
"Windows PowerShell": {
"path": "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe"
}
},
"terminal.integrated.defaultProfile.windows": "PowerShell",
"workbench.settings.applyToAllProfiles": [

]

}`

Metadata

Metadata

Assignees

Labels

area-activationIssue related to activation. Root cause can be from interpreter selection or activation in terminalbugIssue identified by VS Code Team member as probable bugconfirmation-pendingThe issue needs to be confirmed through a maintainer reproducing the bug.triage-needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions