Vscode 设置git bash为默认终端 1.文件-》首选项-》设置-》功能-》终端 2.点击上图中的在settings.json中编辑,添加如下信息: { "terminal.integrated.profiles.windows": { "PowerShell -NoProfile": { "source": "PowerShell", "args": [ "-NoProfile" ] }, "Git-Bash": { "path": "D:\\tools...
解决方案:确保Git Bash的路径正确,并且Git Bash本身可以在系统上正常运行。问题:即使将默认终端设置为Git Bash,新终端窗口仍然使用旧的终端。解决方案:尝试重启VScode,然后再次打开新的终端窗口。问题:无法在设置中找到Git Bash选项。解决方案:尝试手动添加Git Bash的路径,然后重新打开设置页面查看是否出现了Git Bash选项...
setting.json中输入一下代码 "terminal.integrated.defaultProfile.windows":"MyBash","terminal.integrated.profiles.windows":{"MyBash":{"path":"D:\\Program Files\\Git\\bin\\bash.exe"}}, git-bash作为默认终端设置成功
尾部添加这一行代码 "terminal.integrated.shell.windows": "C:\\IDE\\Git\\bin\\bash.exe" 注意...
【问题解决】VSCode终端中没有Git-Bash以及将其设置为默认终端 【问题解决】VSCode终端中没有Git-Bash以及将其设置为默认终端 分类:git web_cnblogs 粉丝-0关注 -0 +加关注 posted @2023-12-09 18:19web_cnblogs阅读(85) 评论(0)编辑收藏举报
在VScode中,默认的终端通常是PowerShell或命令提示符。然而,有时我们可能更希望使用Git Bash作为我们的默认终端,因为它提供了许多在Windows命令行环境中无法找到的功能。以下是在VScode 1.60.0中将默认终端设置为Git Bash的步骤。步骤1:安装Git Bash首先,确保您已经在Windows系统上安装了Git Bash。如果还没有安装,您可...
},"terminal.integrated.defaultProfile.windows":"Git Bash"} 我的VsCode版本: Version: 1.57.1(usersetup)Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48Date: 2021-06-17T13:28:07.755ZElectron: 12.0.7Chrome: 89.0.4389.128Node.js: 14.16.0V8: 8.9.255.25-electron.0OS:Windows_NTx6410.0.19042 ...