问题困扰:
每次打开都是 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” 。
重新打开终端就可以了: