我已经在我的C:\users\myname\vsc
和C:\users\myname\git
文件夹中的自定义目录上安装了visual studio代码和git。因此,由于某种原因,当我单击时,visual studio代码无法检测git bash终端。
在Terminal > Select default Profile
上。
我尝试添加这个作为一个新的终端添加bash。
"terminal.integrated.shell.windows": "C:\\Users\\myname\\github\\bin\\bash.exe"
但是vsc说这个设置是不推荐的,所以我在阅读了它的文件页后尝试了这个设置。
{ "terminal.integrated.profiles.windows": {
"Bash": {
"source": "Git Bash",
}
}
}
但是这也不起作用,,那么我如何解决这个问题呢?
发布于 2022-10-20 18:57:37
将重新安装到默认位置,重新启动VSCode和git将出现在您的启动配置文件上。
这对我来说很管用,即使是触摸settings.json。
https://stackoverflow.com/questions/68370323
复制相似问题