右上角打開json
文件的設置git
輸入如下代碼:shell
"terminal.external.windowsExec": "D:\\Program Files\\Git\\bin\\bash.exe", "terminal.integrated.shell.windows": "D:\\Program Files\\Git\\bin\\bash.exe"
其中的路徑,是git所在目錄的bin的bash,不要用"D:\Program Files\Git\git-bash.exe"
,由於這樣會彈出窗口,而不是集成到vscode自帶的terminal裏面json
此時再進入terminal就默認是git-bash了windows