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
I found the answer here .
This is the link address: https://4sysops.com/archives/vscode-as-a-console-for-powershell-core-6-part-1-multiple-shells/
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.