【问题标题】:MSys2 bash in VS Code starts separate windowVS Code 中的 MSys2 bash 启动单独的窗口
【发布时间】:2019-05-15 11:34:28
【问题描述】:

我可以在 VS Code 的工作区设置中设置我的内部终端应该是 MSys2 bash shell。然而,shell 是作为外部 shell 启动的,而不是内部的。使用 git shell 或 ubuntu 子系统 shell 的 ex 不会发生这种情况

我尝试了此处的不同设置: How do I integrate MSYS2 shell into Visual studio code on Window?

没有可显示的代码,请查看其他 stackoverflow 帖子的链接中提供的示例。

我希望 shell 作为 VS 代码的内部 shell 启动

【问题讨论】:

    标签: msys2


    【解决方案1】:

    使用以下 JSON 代码附加用户设置:

    // MSYS2
    "terminal.integrated.shell.windows": "C:\\msys64\\usr\\bin\\bash.exe",
    "terminal.integrated.shellArgs.windows": ["--login", "-i"],
    "terminal.integrated.env.windows": {
        "CHERE_INVOKING": "1"
    },
    

    【讨论】:

      猜你喜欢
      • 2023-03-28
      • 2017-07-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-13
      • 2021-08-17
      • 2019-09-14
      • 2013-09-04
      相关资源
      最近更新 更多