{ "terminal.integrated.profiles.windows": { "PowerShell -NoProfile": { "source": "PowerShell", "args": [ "-NoProfile" ] }, "Git-Bash": { "path": "D:\\tools\\Git\\bin\\bash.exe", "args": [] } }, "terminal.integrated.defaultProfile.windows": "Git Bash", } 点击vscode 上...
第一步,在vscode的settings.json中加入 然后在vscode的settings中查找这个,可以设置为powershell,也可以设置为刚才定义的git-bash,重起vscode,默认打开的terminal就是你所选择的咯 记得把在vscode中开启的terminal都删除光,然后重启vscode,否则的话有可能打开的terminal还是cmd或powershell 如果上面的你还有问题的话,参考...
Sysnative\\cmd.exe", "${env:windir}\\System32\\cmd.exe" ], "args": [], "icon": "terminal-cmd" }, "Git-Bash": { "path": "D:\\Program Files\\PortableGit\\bin\\bash.exe", "args": [], "icon": "terminal-bash" } }, "terminal.integrated.defaultProfile.windows": "Git-Bash...
"icon": "terminal-cmd" }, "Git-Bash": { "path": "D:\\Git\\bin\\bash.exe" } }, "terminal.integrated.automationShell.windows": "D:\\Git\\bin\\bash.exe", "git.path": "D:\\Git\\bin\\git.exe", "terminal.integrated.defaultProfile.windows": "Git-Bash", } 1. 2. 3. 4...
使用其他终端:如果问题无法解决,可以考虑使用其他终端工具,例如Windows Terminal、PowerShell等。 总结起来,如果在VSCode中没有显示Git Bash作为终端选项,可以通过检查VSCode的设置、Git Bash的安装和VSCode的扩展来解决问题。如果问题仍然存在,可以尝试更新或重新安装VSCode和Git Bash,或者考虑使用其他终端工具。
总结俩种方式,方式2个人觉得更方便, 方式1: # 1. 首先打开【设置】 # 2. 在【设置】的面板搜索框中搜索【shell windows】,找到【Terminal > ...
打开VSCode,进入设置界面,在命令行中输入terminal,随意选择一个“在setting.json中编辑”。 setting.json中输入一下代码 "terminal.integrated.defaultProfile.windows":"MyBash","terminal.integrated.profiles.windows":{"MyBash":{"path":"D:\\Program Files\\Git\\bin\\bash.exe"}}, ...
"terminal.integrated.defaultProfile.windows": "gitBash" } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 1.保存完配置文件后,回到原来的地方,下拉框选择刚才添加的gitBash 2.重启vscode,然后打开终端,就可以看到添加的gitBash终端了 1. 2. --- 个性签名:代码过万,键盘敲烂!!! 如果觉得这篇文章对你有小小...
在VScode中,默认的终端通常是PowerShell或命令提示符。然而,有时我们可能更希望使用Git Bash作为我们的默认终端,因为它提供了许多在Windows命令行环境中无法找到的功能。以下是在VScode 1.60.0中将默认终端设置为Git Bash的步骤。步骤1:安装Git Bash首先,确保您已经在Windows系统上安装了Git Bash。如果还没有安装,您可...
"},"Git-Bash":{// 这里不可以写成GitBash,vscode 不识别"path":"D:\\软件\\Git\\bin\\bash.exe",// 这里是你自己的路径"args":[]},"Windows PowerShell":{"path":"C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"}},"terminal.integrated.defaultProfile.windows":"Git-Bash"...