Using PowerShell core in Visual Studio Code on windows

Posted by Jon Bullen on 2019-03-15
Estimated Reading Time 1 Minutes
Words 132 In Total

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 Shell: Windows 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:/Users/${env:USERNAME}/scoop/apps/pwsh/current/pwsh.exe”,
    “terminal.integrated.shell.windows”: “C:/Users/${env:USERNAME}/scoop/apps/pwsh/current/pwsh.exe”,

Now when the terminal is opened it will be using PowerShell Core. As I use Scoop to install items on my computers the path above reflects that, if you have powershell elsewhere then use that path.

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


If you like this blog or find it useful for you, you are welcome to comment on it. You are also welcome to share this blog, so that more people can participate in it. If the images used in the blog infringe your copyright, please contact the author to delete them. Thank you!