运行菜单 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"}