如何将 Git Bash 添加到 VsCode [英] How to Add Git Bash to VsCode

查看:60
本文介绍了如何将 Git Bash 添加到 VsCode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到此,Git Bash应该就添加成功了.

附注.如果 VS Code 关闭,该列表可能会消失.只会显示默认的 shell.您必须再次执行上述步骤.

It is not showing Git Bash Option in while selecting terminal in VsCode

解决方案

  1. Make sure you have already installed Git for Windows

  2. In VS Code, go to Command Palette (⇧⌘P) with Terminal: Select Default Profile or Terminal: Select Default Shell in older versions, then select available shell in this case, Git Bash, in the dropdown list.

  3. Click on + sign next to terminal list as shown below:

At this point, the Git Bash should be successfully added.

PS. The list might disappear if the VS Code is closed. Only the default shell will show up. You have to do the steps above again.

这篇关于如何将 Git Bash 添加到 VsCode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆