Use MSYS2 inside VSCode's terminal
{
"terminal.integrated.shell.windows": "C:\\msys64\\msys2_shell.cmd",
"terminal.integrated.shellArgs.windows": [
"-defterm",
"-no-start",
"-use-full-path",
"-mingw",
"-here"
]
}
-defterm
and-no-start
prevent MSYS2 from using another terminal instead of VSCode.-use-full-path
allows you to use Windows executables (like Nodejs).-mingw
uses MinGW executables instead of MSYS2 (not necessary but maybe good).-here
opens the shell at the right directory.
For more info, read C:\msys64\msys2_shell.cmd