Using PowerShell core in Visual Studio Code on windows

This is more for me than anyone else. If you want to move to PowerShell core in Visual Studio Code then do the following.

  1. Press CTRL + , to open settings.
  2. Enter terminal in the search box.
  3. Scroll down to Terminal > Integrated > Shell: Windows
  4. Click on ‘Edit in settings.json’ and add the following.
    "terminal.integrated.automationShell.windows": "c:/tools/pwsh/pwsh.exe",
    "terminal.integrated.shell.windows": "c:/tools/pwsh/pwsh.exe"

Now when the terminal is opened it will be using PowerShell 6 / Core.

To install the PowerShell Core / 6 got to https://github.com/powershell/powershell

Sytone

I’m a principal engineer working at Microsoft. I have run and supported services for over twenty years and worked in multiple countries. I love working with passionate people and new technology.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.