繁体   English   中英

Powershell / Visual Studio Code:Visual Studio Code 中 Powershell 的更新版本

[英]Powershell / Visual Studio Code: Update version of Powershell in Visual Studio Code

我使用的是 Visual Studio Code 版本 1.37.1,VS-Code 使用的版本是 powershell 版本是 5.1.18362.145。

我去了 GitHub 并获得了最新的 powershell 版本,6.2.2 并安装了它,但是当我在 VS-Code 中运行 $psversiontable 时,它告诉我它的版本是 5.1.18362.145。

如何让 VS-Code 使用我安装的最新 powershell 版本?

谢谢你。

Powershell 管理员 window:

在此处输入图像描述

代码 --install-extension PowerShell-6.2.2.vsix

在最新的 VS Code 中,只需 go 进行设置和配置:

terminal.integrated.profiles

只需将其设置为 Powershell 而不是 Default (或相应的目录)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM