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",

效果图

posted @   。思索  阅读(16909)  评论(0编辑  收藏  举报
编辑推荐:
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· PostgreSQL 和 SQL Server 在统计信息维护中的关键差异
· C++代码改造为UTF-8编码问题的总结
· DeepSeek 解答了困扰我五年的技术问题
阅读排行:
· 清华大学推出第四讲使用 DeepSeek + DeepResearch 让科研像聊天一样简单!
· 推荐几款开源且免费的 .NET MAUI 组件库
· 实操Deepseek接入个人知识库
· 易语言 —— 开山篇
· 一个费力不讨好的项目,让我损失了近一半的绩效!
点击右上角即可分享
微信分享提示