Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using MSYS2 MinGW 64-bit terminal on VSCode

There's a lot of tutorials about how to using MSYS2 terminal on VSCode. But we know there are 3 shells:

  • MSYS2 MinGW 32-bit
  • MSYS2 MinGW 64-bit
  • MSYS2 MSYS

But if I set "terminal.integrated.shell.windows" to "C:\\msys64\\usr\\bin\\bash.exe", I can only use MSYS2 MSYS. I want to use MSYS2 MinGW 64-bit because I don't want my programs required msys-2.0.dll

Can somebody teach me how to do that?

like image 374
Verstand Avatar asked Oct 26 '25 06:10

Verstand


1 Answers

This work for me:

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

Pls. refer to: How do I integrate MSYS2 shell into Visual studio code on Window?

like image 189
Markus Setya Budi Avatar answered Oct 28 '25 21:10

Markus Setya Budi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!