1

In Visual Studio Code, I would like to open a PowerShell window (outside of VSC) with the shortcut Ctrl+Shift+C.

By default, this shortcut will open a cmd.exe, so I would like to replace it.

mx0
  • 5,600
  • 10
  • 45
  • 51
Bruno Finger
  • 1,509
  • 2
  • 20
  • 40

1 Answers1

0

You can set the terminal.external.windowsExec setting in settings.json. See this to find PowerShell's executable path if yours isn't the default one.

"terminal.external.windowsExec": "C:\\WINDOWS\\system32\\WindowsPowerShell\\1.0\\powershell.exe"
lucidiot
  • 464
  • 1
  • 6
  • 15
  • But I wanted to open the terminal outside of VSC, not the integrated terminal, as explained in the question. – Bruno Finger Jun 17 '17 at 17:09
  • My bad, I wasn't able to test it immediately, I had read about them sharing the same setting but that was before 1.6.1. I found the other setting and edited my answer ; you can use `terminal.external.windowsExec`. – lucidiot Jun 17 '17 at 23:49