用vscode在windows下調測代碼,運行時默認打開的終端是windows的cmd,很不受我待見。畢竟習慣了linux,習慣了windows下的git bash風格。怎么辦?
search,search,research。
先確保windows上安裝了git bash。
再在vscode中搜索git bash擴展安裝上。
最后,設置 git bash為默認shell。
1 2 3 4 5 6 7 8 9 10 | "terminal.integrated.profiles.windows": {"PowerShell": {"source": "PowerShell","icon": "terminal-powershell"},"Git-Bash": {"path": "C:\\Program Files\\Git\\bin\\bash.exe"},},"terminal.integrated.defaultProfile.windows": "Git-Bash", |
更詳細信息請參考下面文檔
Windows 環境下在 VSCode 中使用 Git Bash 終端 | stevending1st