简体   繁体   中英

Powershell / Visual Studio Code: Update version of Powershell in Visual Studio Code

I'm using Visual Studio Code version 1.37.1 and the version VS-Code is using is powershell version is 5.1.18362.145.

I went to GitHub and got the latest powershell version, 6.2.2 and installed it, but when I run $psversiontable in VS-Code, it tells me it's version 5.1.18362.145.

How do I get VS-Code to use the latest powershell version I have installed?

Thank you.

Powershell admin window:

在此处输入图像描述

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

As of the latest VS Code, just go to Settings and configure:

terminal.integrated.profiles

Just need to set this to Powershell instead of Default (or the appropriate directory).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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