VScode配置GItbash为终端

  • Post author:
  • Post category:其他


VScode配置Gitbash为终端



一、VScode配置Gitbash为终端


  1. 按“ctrl” 和 “,” 组合键盘,进入设置:


    在这里插入图片描述

  2. 在“搜索设置”输入:“terminal.integrated.profiles.windows”,进入json编辑:


    在这里插入图片描述

  3. 将原来的选中,按“/”注释掉,然后输入:
{
    "window.zoomLevel": 3,
    "remote.SSH.remotePlatform": {
        "Unbantu": "linux"
    },
    "typescript.disableAutomaticTypeAcquisition": true,
    "C_Cpp.errorSquiggles": "Enabled",
    "cmake.configureOnOpen": true,
    "terminal.integrated.profiles.windows": {
        "gitBash": {
            "path": "D:\\Git\\bin\\bash.exe",
        }
    }
}


如图:


在这里插入图片描述


  1. 重启VScode即可在终端发现Gitbash。


    在这里插入图片描述



版权声明:本文为zsiming原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。