Windows Powershell 和 VSCode 集成 Powershell 的 $env:PATH 不同

wil*_*007 9 powershell visual-studio-code

我使用的是 Windows 10。Windows Powershell 和 VSCode 集成 Powershell 的结果$env:PATH不同。我需要 VSCode 集成的 Powershell 与 Windows Powershell 具有相同的路径,我应该如何纠正这个问题?

Sim*_*ier 5

更改用户环境变量、重新打开终端或重新加载窗口是不够的。

我必须手动退出并重新打开 VS Code。

这是版本1.66.2

编辑:我在 2024 年 1 月 18 日发布的版本1.85.2上看到了相同的行为。


小智 0

如果您刚刚编辑了 PATH,请尝试在 VSCode 中终止终端并重新打开终端。