真正能用的,解决vscode python 终端不自动进入虚拟环境
#.vscode/settings.json # powershell 终端配置内容 { "terminal.integrated.profiles.windows": { "PowerShell": { "source": "PowerShell", "icon": "terminal-powershell", "args": ["-NoExit", "-Command", ". '${workspaceFolder}\\..\\venv\\Scripts\\Activate.ps1'"] } }, "terminal.integrated.defaultProfile.windows": "PowerShell" }
修改vscode 的 settings.json文件。