vscode配置終端默認為git bash
ctrl + shift + p 打開設置
文章來源:http://www.zghlxwxcb.cn/news/detail-723776.html
添加 git bash 并設為默認終端
注意不要配置 git-bash.exe 的路徑。
如果配置為 git-bash.exe 路徑,則會單獨打開 git bash 窗口,而不是嵌入 vscode 終端頁簽中。文章來源地址http://www.zghlxwxcb.cn/news/detail-723776.html
{
"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": "C:\\Program Files\\Git\\git-bash.exe",
"path": "C:\\Program Files\\Git\\bin\\bash.exe",
"args": []
}
},
"terminal.integrated.defaultProfile.windows": "Git Bash"
}
到了這里,關于vscode配置終端默認為git bash的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!