我的settings.json非常简单,它用sh.exe(来自git)替换cmd.exe。
{
"terminal.integrated.shell.windows": "C:\\Program Files (x86)\\Git\\bin\\sh.exe"
}
打开外壳后,绝对没有任何作用。我什至不能。
sh.exe"-3.1$ ls
sh.exe": ls: command not found
sh.exe"-3.1$ cd ..
sh.exe"-3.1$ ls
sh.exe": ls: command not found
sh.exe"-3.1$
VSCode 不能与 Mingw32(git 的 bash)一起使用吗?我该如何设置它才能工作?
所以 git bash 需要两个参数 --login 和单独的 -i
因此完整的 json 需要如下所示:
{
"terminal.integrated.shell.windows": "C:\\Program Files (x86)\\Git\\bin\\bash.exe",
"terminal.integrated.shellArgs.windows": ["--login","-i"]
}
这将使所有命令在集成终端中运行。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)