【问题标题】:Using MSYS2 MinGW 64-bit terminal on VSCode在 VSCode 上使用 MSYS2 MinGW 64 位终端
【发布时间】:2018-12-27 10:14:33
【问题描述】:

有很多关于如何在 VSCode 上使用 MSYS2 终端的教程。但我们知道有 3 个 shell:

  • MSYS2 MinGW 32 位
  • MSYS2 MinGW 64 位
  • MSYS2 MSYS

但是如果我将"terminal.integrated.shell.windows"设置为"C:\\msys64\\usr\\bin\\bash.exe",我只能使用MSYS2 MSYS。我想使用 MSYS2 MinGW 64 位,因为我不希望我的程序需要 msys-2.0.dll

谁能教我怎么做?

【问题讨论】:

  • 你试过直接使用mingw32.exe或者mingw64.exe吗?

标签: visual-studio-code vscode-settings mingw-w64 msys2


【解决方案1】:

这对我有用:

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

请。参考:How do I integrate MSYS2 shell into Visual studio code on Window?

【讨论】:

    猜你喜欢
    • 2021-11-15
    • 1970-01-01
    • 1970-01-01
    • 2021-11-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多