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

相关推荐
草原上唱山歌4 分钟前
推荐使用的C++ IDE
开发语言·c++·ide
智驾4 分钟前
【瑞萨RA x Zephyr评测】四、在线调试功能
vscode·debug·瑞萨·zephyr·renesas·ra6e2·fpb-ra6e2
番茄灭世神13 分钟前
基于VScode的C/C++环境搭建
vscode·cmake·gcc·c\c++·llvm·工具链搭建
萧曵 丶18 分钟前
CI/CD 流程
git·ci/cd
沈千秋.1 小时前
简单文件包含案例
android·ide·android studio·文件包含
import_random1 小时前
[git版本控制]git push(详解)
git
不如喫茶去2 小时前
VScode突然打不开,点击图标没反应
ide·vscode·编辑器
南村群童欺我老无力.2 小时前
Flutter 框架跨平台鸿蒙开发-鸿蒙计算器开发教程
vscode·flutter·华为·typescript·harmonyos
bing_feilong2 小时前
gitee pull 总是需要用户名和密码,该如何设置?
git·gitee
毒鸡蛋2 小时前
GIT报错:Connection to git. closed by remote host.
git