VSCode配置git bash为默认终端
创始人
2025-06-01 12:24:40

打开左下角齿轮图标

   

 打开Settings

搜索框输入 terminal.integrated.profiles.windows, 在下方显示的内容上点击

Edit in settings.json

配置修改如下

"terminal.integrated.profiles.windows": {"PowerShell": {"source": "PowerShell","icon": "terminal-powershell"},"Command Prompt": {"path": ["${env:windir}\\Sysnative\\cmd.exe","${env:windir}\\System32\\cmd.exe"],"args": [],"icon": "terminal-cmd"},"GitBash": {"path": "D:\\Program Files\\Git\\bin\\bash.exe"}},"terminal.external.windowsExec": "D:\\Program Files\\Git\\bin\\bash.exe","terminal.integrated.defaultProfile.windows": "GitBash"

 注意: GitBash不要写成 Git Bash, 中间有空格保存后没有效果。

在vscode中使用bash_vscode 运行bash_BAOYANG dl的博客-CSDN博客通过设置使windows的vscode中可以使用bash终端https://blog.csdn.net/weixin_43342476/article/details/126292368

GitBash 未在 Visual Studio Code 中显示为终端选项 | 如何解决GitBash 未在 Visual Studio Code 中显示为终端选项经验,为你挑选了3个好方法。https://qa.1r1g.com/sf/ask/4764785161/

相关内容

热门资讯

2025新版教程“血战麻将算番... 您好,血战麻将算番器这款游戏可以开挂的,确实是有挂的,通过微信【8198015 】很多玩家在这款游戏...
传递经验!德扑之心辅助工具(透... 1、超多福利:超高返利,海量正版游戏,德扑之心系统规律,上线德扑之心黑科技等满足你不同需求; 2、...
2025新版教程“真人四川麻将... 2025新版教程“真人四川麻将到底是不是有挂”确实真的有挂(详细教程),亲,有的,ai轻松简单,又可...
一分钟讲解“牛牛房卡微信链接房... 牛牛房卡微信链接是一款非常受欢迎的游戏,咨询房/卡添加微信:83404491许多玩家在游戏中会购买房...
传递经验!德扑之星网页版辅助工... 传递经验!德扑之星网页版辅助工具(透视)原来是有挂猫腻(2024已更新)(哔哩哔哩)是一款可以让一直...