Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code 使用Shift+打开PowerShell;Ctrl+;C而不是Cmd_Visual Studio Code - Fatal编程技术网

Visual studio code 使用Shift+打开PowerShell;Ctrl+;C而不是Cmd

Visual studio code 使用Shift+打开PowerShell;Ctrl+;C而不是Cmd,visual-studio-code,Visual Studio Code,在VisualStudio代码中,我希望使用快捷键Ctrl+Shift+C打开PowerShell窗口(在VSC之外) 默认情况下,此快捷方式将打开一个cmd.exe,因此我想替换它。您可以在settings.json中设置终端.external.windowsExec设置。如果您的路径不是默认路径,请参阅查找PowerShell的可执行路径 “terminal.external.windowsExec”:“C:\\WINDOWS\\system32\\WindowsPowerShell\\1.

在VisualStudio代码中,我希望使用快捷键Ctrl+Shift+C打开PowerShell窗口(在VSC之外)


默认情况下,此快捷方式将打开一个
cmd.exe
,因此我想替换它。

您可以在settings.json中设置
终端.external.windowsExec
设置。如果您的路径不是默认路径,请参阅查找PowerShell的可执行路径

“terminal.external.windowsExec”:“C:\\WINDOWS\\system32\\WindowsPowerShell\\1.0\\powershell.exe”

但我想在VSC外部打开终端,而不是问题中解释的集成终端。我的问题是,我无法立即测试,我读到他们共享相同的设置,但那是在1.6.1之前。我找到了另一个设置并编辑了我的答案;您可以使用
终端.external.windowsExec