簡體   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