Skip to content

Install PowerShell Core 6 on Linux Mint and Configure in Visual Studio Code

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 | sudo apt-key add - curl | 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:

"powershell.powerShellExePath": "/opt/microsoft/powershell/6/pwsh" "": "/opt/microsoft/powershell/6/pwsh"

Save the settings file > F1 > Reload Window
PowerShell should now be setup with the Integrated Terminal in VSC.


0 0 votes
Article Rating
Share this Post
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x