searchusermenu
  • 发布文章
  • 消息中心
点赞
收藏
评论
分享
原创

VSCode设置Git Terminal

2023-07-03 02:11:39
5
0

运行菜单 File Preferences 菜单中选择 Settings 项,输入 shell:window ,打开settings.json编辑

 

在settings.json里面添加以下配置(如果原有的配置没有以下部分,否则只需要修改 Git-Bash 这部分即可):

注:只需要把里面的内容添加即可,外面嵌套的花括号不需要

{    
    "git.path": "G:/develop/common/Git/bin/git.exe",
    "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"
        },
        "Git-Bash": {
            "path": "G:/develop/common/Git/bin/bash.exe",
            "args": []
        },
        "Windows PowerShell": {
            "path": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
        }
    },
    "terminal.integrated.defaultProfile.windows": "Git-Bash"
}
0条评论
作者已关闭评论
t****m
98文章数
1粉丝数
t****m
98 文章 | 1 粉丝
t****m
98文章数
1粉丝数
t****m
98 文章 | 1 粉丝
原创

VSCode设置Git Terminal

2023-07-03 02:11:39
5
0

运行菜单 File Preferences 菜单中选择 Settings 项,输入 shell:window ,打开settings.json编辑

 

在settings.json里面添加以下配置(如果原有的配置没有以下部分,否则只需要修改 Git-Bash 这部分即可):

注:只需要把里面的内容添加即可,外面嵌套的花括号不需要

{    
    "git.path": "G:/develop/common/Git/bin/git.exe",
    "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"
        },
        "Git-Bash": {
            "path": "G:/develop/common/Git/bin/bash.exe",
            "args": []
        },
        "Windows PowerShell": {
            "path": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
        }
    },
    "terminal.integrated.defaultProfile.windows": "Git-Bash"
}
文章来自个人专栏
文章 | 订阅
0条评论
作者已关闭评论
作者已关闭评论
0
0