1.找到你git bin bash.exe的安裝路徑
2.在終端里點(diǎn)擊小箭頭

3. 選擇配置終端設(shè)置

4.找到terminal.integrated.profiles.windows,進(jìn)入json編輯

5.在配置文件中添加文章來源:http://www.zghlxwxcb.cn/news/detail-702181.html
"terminal.integrated.profiles.windows": {
// 向終端中添加Git-Bash
"Git-Bash": {
"path": "D:\\tools\\Git\\bin\\bash.exe" //安裝Git的地址
}
},
"terminal.integrated.defaultProfile.windows": "Git-Bash", //將Git-Bash設(shè)置為默認(rèn)終端
6.重啟VSCode文章來源地址http://www.zghlxwxcb.cn/news/detail-702181.html
到了這里,關(guān)于【問題解決】VSCode終端中沒有Git-Bash以及將其設(shè)置為默認(rèn)終端的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!