【发布时间】:2021-11-19 06:40:59
【问题描述】:
从https://code.visualstudio.com/docs/editor/integrated-terminal 开始,我已经能够将 shell 放在 shell 选项中,但是当我选择它时,它会弹出一个与 VSCode 终端分开的新窗口。我该如何解决这个问题?
这是我在settings.json中所做的:
"terminal.integrated.profiles.windows": {
...
"MINGW64": {
"path": "C:\\msys64\\mingw64.exe"
}
}
我也有问题git。我将 git 安装为 msys2 的包。我已经设置了所有基本的git config 参数。
但是当我尝试git config --global -e 时,它会报错:
hint: Waiting for your editor to close the file... code --wait: line 1: code: command not found error: There was a problem with the editor 'code --wait'.
所以我在 cmd 中进行了尝试,它成功了。 where code 也只能在 cmd 中工作。
所以我想知道会是什么问题。会不会和PATH 有关?还是与上述问题有关?
【问题讨论】:
-
@HolyBlackCat 这种方法还能用吗?我之前已经查看过该帖子但没有使用它,因为它使用了
terminal.integrated.shell.windows这是过时的版本吗?
标签: git terminal vscode-settings mingw-w64 msys2