Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell/Visual Studio代码:Visual Studio代码中Powershell的更新版本_Powershell_Visual Studio Code - Fatal编程技术网

Powershell/Visual Studio代码:Visual Studio代码中Powershell的更新版本

Powershell/Visual Studio代码:Visual Studio代码中Powershell的更新版本,powershell,visual-studio-code,Powershell,Visual Studio Code,我使用的是Visual Studio代码版本1.37.1,而VS代码使用的是powershell版本5.1.18362.145 我去GitHub获得了最新的powershell版本6.2.2并安装了它,但当我在VS代码中运行$psversiontable时,它告诉我它的版本是5.1.18362.145 如何让VS代码使用我安装的最新powershell版本 多谢各位 Powershell管理窗口: 代码--安装扩展PowerShell-6.2.2.vsix我找到了答案 这是链接地址:谢谢@Joh

我使用的是Visual Studio代码版本1.37.1,而VS代码使用的是powershell版本5.1.18362.145

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

如何让VS代码使用我安装的最新powershell版本

多谢各位

Powershell管理窗口:

代码--安装扩展PowerShell-6.2.2.vsix

我找到了答案


这是链接地址:

谢谢@JohnMeek,感谢您的回复。我收到一个错误“没有这样的文件或目录”。VSCode文档读取:“对于Windows,终端下拉列表中有一个方便的shell选择器,可让您在多个检测到的shell(包括命令提示符、PowerShell、PowerShell核心)之间进行选择。”对我来说不是这样,尽管它位于我的路径上。