Shell Launcher allows you to configure multiple shells within Visual Studio Code. The key to opening PowerShell Core and PowerShell for Windows side by side is the Shell Launcher Visual Studio Code extension.
Install the Shell Launcher Visual Studio Code extension PS C:\storage\code\azure-powershell-demos> $PSVersionTable Now, when opening up a terminal in Visual Studio Code, PowerShell core should be the default version. "": "c:/Program Files/PowerShell/6/pwsh.exe" If you have other settings in your settings.json file, you may need to adjust the following example. Modify the settings.json file to include. To do so, open up the VS Code user settings.json file by clicking on file > preferences > settings, select. Configure default PowerShell versionīefore configuring Shell Launcher, I want to set PowerShell Core as the default PowerShell version. In order to do this yourself, you need a Windows-based system with both Visual Studio Code and PowerShell Core installed.įor more information on PowerShell Core see Installing PowerShell Core on Windows. In this post, I will detail how I've used the Shell Launcher Visual Studio Code extension to configure my Windows system to run PowerShell Core and PowerShell for Windows side by side. That said, I sometimes need to work in PowerShell for Windows or use both side by side.
If you are not familiar with PowerShell Core, it is a cross platform (Windows, Linux, and macOS) version of PowerShell based on. I'm a PowerShell fan and have recently adopted PowerShell Core as my version of choice.