效果圖
步驟
1.
解決VScode缺少git bash的問題_failed to start bash - is git-bash.exe on the syst_Rudon濱海漁村的博客-CSDN博客效果解決步驟找到git安裝目錄下的/bin/bash.exe,復制其絕對路徑,例如D:\Program Files\Git\bin\bash.exe把路徑的右斜杠轉義,例如D:\\Program Files\\Git\\bin\\bash.exe其實就是一個斜杠變兩個在vscode中按F1,輸入settings.json不要回車,選擇“打開設置(json)”按實際情況,修改為{ "terminal.integrated.profiles.windows"_failed to start bash - is git-bash.exe on the system path? vscodehttps://blog.csdn.net/qq285744011/article/details/122557900
2.文章來源:http://www.zghlxwxcb.cn/news/detail-652328.html
vscode 配置 gitbash 終端,并設置為默認_vscode git bash_JOKP的博客-CSDN博客1. 使gitbash生效打開vscode文件->首選項->設置,打開設置搜索shell windows點擊在setting.json中編輯在vscode升級后,在默認的終端配置文件中顯示的是"Git Bash",因為中間有空格所以無法識別??梢栽谥虚g增加短橫杠"-",更改成"Git-Bash"。并刪除原內容,增加"path",值為bash.exe所在目錄。?。?!需要是bin目錄下的bash.exe!??!此時點擊終端->新建終端,就能看到Git-Bas._vscode git bashhttps://blog.csdn.net/qq_44498977/article/details/124204347文章來源地址http://www.zghlxwxcb.cn/news/detail-652328.html
到了這里,關于VScode替換cmd powershell為git bash 終端,并設置為默認的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!