1、ctrl shift p打开palete管理面板2、搜索setting找到setting.json后打开3、按照以下格式添加如下配置代码其中args参数列表可以参考Anaconda Powershell Prompt快捷键属性中目标里的内容注若是在VSCode中配置cmd则需要配置path参数指定cmd的路径source参数默认只支持PowerShell与Git Bash{ terminal.integrated.profiles.windows: { PowerShell: { source: PowerShell, args: [-ExecutionPolicy ,ByPass, -NoExit, -Command, D:\\miniconda3\\shell\\condabin\\conda-hook.ps1; conda activate D:\\miniconda3 ] } }, terminal.integrated.defaultProfile.windows: PowerShell }同理cmd配置terminal.integrated.profiles.windows: { Command Prompt: { path: cmd.exe, args: [/K, D:\\miniconda3\\Scripts\\activate.bat] } }, terminal.integrated.defaultProfile.windows: Command Prompt,