无法将默认终端设置为PowerShell 6.0

我试图将vscode中的默认终端设置为PowerShell 6.0。但是,重新启动vscode后,会显示以下消息,并且终端未启动。无法将默认终端设置为PowerShell 6.0

ERROR e.executable.toLowerCase is not a function 

这里是我尝试过使用的用户设置覆盖代码。注:反斜杠路径分隔符必须转义。

vscode 1.18.1 

PSVersion 6.0.0-rc

"C:\Program Files\PowerShell\6.0.0-rc\pwsh.exe"

{

"window.zoomLevel": 1,

"terminal.integrated.shell.windows": {

"C:\\Program Files\\PowerShell\\6.0.0-rc\\pwsh.exe"

}

}

回答:

"terminal.integrated.env.windows"不是正确的使用属性。

This Works。

{ 

"window.zoomLevel": 1,

"terminal.integrated.shell.windows": "C:\\Program Files\\PowerShell\\6.0.0-rc\\pwsh.exe"

}

这也适用。

{ 

"window.zoomLevel": 1,

"terminal.integrated.shell.windows":

"C:/Program Files/PowerShell/6.0.0-rc/pwsh.exe"

}

以上是 无法将默认终端设置为PowerShell 6.0 的全部内容, 来源链接: utcz.com/qa/258496.html

回到顶部