VSCode, 请在windows下使用git bash终端

用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

相关推荐
HealthScience几秒前
常见的微调的方式有哪些?(Lora...)
vscode·python
乘风对月歌1 小时前
conda 或 vscode 中没有的虚拟环境
ide·vscode·conda
Sylvan Ding1 小时前
Cursor配置迁移到VSCode
ide·vscode·编辑器·cursor·配置迁移
卖冰糖葫芦的大叔2 小时前
解决vscode与cursor在终端中无法使用code和cursor命令的问题
ide·vscode·编辑器
cooldream20092 小时前
Git 拒绝推送(Push Rejected)问题全解析与解决方案实战指南
git
wxr06162 小时前
GIT无法push
git·gitee
Stream_Silver2 小时前
高效并行测试:在IDEA中同时运行多个参数化测试配置(idea2019如何在同一个项目运行多次)
java·ide·intellij-idea
从此不归路2 小时前
FPGA 结构与 CAD 设计(第2章)
ide·fpga开发
程序媛哪有这么可爱!2 小时前
【删除远程服务器vscode缓存】
服务器·人工智能·vscode·缓存·边缘计算
Lv11770083 小时前
Visual Studio中的正则表达式
ide·笔记·正则表达式·c#·visual studio