Skip to content

Instantly share code, notes, and snippets.

@aws-scripting-guy
Last active October 16, 2022 21:20
Show Gist options
  • Save aws-scripting-guy/09eb6336745041ba8a9f949be705a858 to your computer and use it in GitHub Desktop.
Save aws-scripting-guy/09eb6336745041ba8a9f949be705a858 to your computer and use it in GitHub Desktop.
Setting up PowerShell as default terminal in Visual Studio Code (Windows and Mac OS)
  1. Open VS Code
  2. Ctrl + Shift + P
  3. Type "user"
  4. Choose "Preferences: Open user Settings"
  5. Include following settings and restart
  6. Test Terminal by Ctrl + Shift + (Command +)

Mac OS

{
    "window.zoomLevel": 2,
    "terminal.integrated.shell.osx": "/usr/local/bin/powershell"
}

Windows 10

{
    "window.zoomLevel": 2,
    "terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
}
@aarontheadmin
Copy link

In macOS, the correct path is:

"terminal.integrated.shell.osx": "/usr/local/bin/pwsh"

@sourabh94
Copy link

sourabh94 commented Jun 9, 2019

for windows 8 use this path

"C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe"

this might work for windows 7 as well but never tried it so if this works for anyone please comment

@netbuddha
Copy link

Whats with the zoomlevel?

@sergeyklay
Copy link

sergeyklay commented Sep 24, 2020

For PowerShell Preview use the following configuration:

    "terminal.integrated.shell.windows": "c:\\Program Files\\PowerShell\\7-preview\\pwsh.exe",
    "terminal.integrated.automationShell.windows": "c:\\Program Files\\PowerShell\\7-preview\\pwsh.exe",

@shuvocoder444
Copy link

"terminalintegrated.shell.windows":" powershell.exe"

@emjanser
Copy link

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment