【问题标题】:Vs code terminal changes to powershell every time [duplicate]Vs代码终端每次都更改为powershell [重复]
【发布时间】:2021-11-02 10:18:04
【问题描述】:

在 Vs 代码更新 1.60.0 后终端打开 powershell 但默认保持不变(git bash)。如果我创建新终端,那么它会打开 git bash。

当我启动应用程序时,它看起来像:-

然后我必须创建新的 shell & 它会打开默认的 shell (git bash):-

【问题讨论】:

  • 这是 v1.60.0 中的一个已知问题,有望很快得到解决。
  • tnx 很多 @mklement0 ????

标签: powershell visual-studio-code terminal vscode-settings git-bash


【解决方案1】:

首先尝试将terminal.integrated.defaultProfile.windows 设置为 bash(如果您希望默认使用 bash)

这样,您不必从当前的默认 Powershell 终端切换。

... 前提是 microsoft/vscode issue 132149 是固定的,但情况并非如此。
这是issue 132150 的副本,现在由commit c765e70Megan Rogge 修复。

    async createTerminal(options?: ICreateTerminalOptions): Promise<ITerminalInstance> {
        if (!this._availableProfiles) {
            await this._refreshAvailableProfiles();
        }

9 月 14 日(2021 年)更新:现在已修复,VSCode 1.60.1 及其August 2021 Endgame Recovery

【讨论】:

  • 它在?。 tnx...
  • @Sadhin 这已在 main 中修复:请参阅上面我编辑的答案。它应该很快在 1.60.1 中可用。
  • @Sadhin VSCode 1.60.1 现已(9 月 14 日)发布,应该可以解决问题。
  • 是的,现在已修复。 tnx...
猜你喜欢
  • 1970-01-01
  • 2018-09-26
  • 2023-02-06
  • 2022-12-01
  • 2012-03-06
  • 2011-06-20
  • 1970-01-01
  • 1970-01-01
  • 2018-07-26
相关资源
最近更新 更多