首页 文章

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

提问于
浏览
1

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

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"
    }
}

1 回答

  • 2

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

    这有效 .

    {
        "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"
    }
    

相关问题