問題困擾:
每次打開都是 powershell, 因為每次要是用 git bash, 所以每次手動切換很麻煩。
要將默認終端設置為 Git Bash,可以通過以下步驟完成。以下是詳細的操作方法:
步驟 1:打開終端設置
- 在 Visual Studio Code 的菜單欄中,點擊左上角的“終端”(Terminal)選項。
- 在下拉菜單中選擇 “配置終端設置” (Configure Terminal Settings)。
步驟 2:修改終端設置
- 這將打開 VS Code 的設置頁面,并自動跳轉到與終端相關的設置部分。
- 在搜索框中輸入 “terminal.integrated.defaultProfile.windows” ,找到該設置項。
- 如果你使用的是 macOS 或 Linux,請分別搜索 “terminal.integrated.defaultProfile.osx” 或 “terminal.integrated.defaultProfile.linux” 。
重新打開終端就可以了: