2

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
  • 6,445
  • 12
  • 49
  • 54
Bruno Finger
  • 2,105
  • 3
  • 27
  • 47

1 Answers1

1

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
  • 484
  • 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