vscode——配置终端集成bash和cmd
前言
配置后bash和cmd是集成的,输入bash
回车则进入bash,输入cmd
回车则进入cmd
步骤
首先肯定是需要打开我们的vscode咯~
进入终端设置
配置shell路径
根据自己的系统来复制对应的配置文件,并在settings.json
编辑
新版本
!> 新版本发生了一些变更, 请注意
"terminal.integrated.shellIntegration.history": 99999, "terminal.integrated.shellIntegration.enabled": true, "terminal.integrated.defaultProfile.windows": "bash", "terminal.integrated.cursorBlinking": true, "terminal.integrated.copyOnSelection": true, "terminal.integrated.profiles.windows": { "PowerShell": { "source": "PowerShell", "icon": "terminal-powershell" }, "Command Prompt": { "path": ["${env:windir}\\Sysnative\\cmd.exe", "${env:windir}\\System32\\cmd.exe"], "args": [], "icon": "terminal-cmd" }, "bash": { "path":"C:\\Program Files\\Git\\bin\\bash.exe", // 不要忘记修改我 "args": [], "icon": "terminal-bash" } },
老版本
地址为你的bash.exe
文件所在地址
"terminal.integrated.shell.windows": "D:\Program Files\Git\bin\bash.exe",
效果图
学无止境,谦卑而行.
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· PostgreSQL 和 SQL Server 在统计信息维护中的关键差异
· C++代码改造为UTF-8编码问题的总结
· DeepSeek 解答了困扰我五年的技术问题
· 清华大学推出第四讲使用 DeepSeek + DeepResearch 让科研像聊天一样简单!
· 推荐几款开源且免费的 .NET MAUI 组件库
· 实操Deepseek接入个人知识库
· 易语言 —— 开山篇
· 一个费力不讨好的项目,让我损失了近一半的绩效!