It’s been a while since i worked with PowerShell on Linux Mint.
My install of PowerShell was corrupt and VS Code was out of date.
I decided to uninstall them both and reinstall from scratch.
sudo apt-get remove powershell
sudo apt-get remove code
To install PS Core 6.1
Add the MS Keys and Repo
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
sudo apt-get update
sudo apt-get install powershell -y
Type pwsh to start PowerShell
I installed VSC from the Software Manager which had 1.28 the current version
Open Extensions: Search and install Powershell, reload.
Press F1 > Settings JSON > Enter the following paths:
Save the settings file > F1 > Reload Window
PowerShell should now be setup with the Integrated Terminal in VSC.