bash - 如何阻止 PowerShell 集成终端出现在 VScode 启动时?
问题描述
我使用 Git Bash 作为内部和外部终端,基本上从不使用 powershell。我已经尝试相应地设置 VScode,这是我的 settings.json:
{
"C_Cpp.errorSquiggles": "Enabled",
"terminal.integrated.profiles.windows": {
"PowerShell": null,
"Command Prompt": null,
"Git Bash": {
"source": "Git Bash",
"path": ["C:\\Program Files\\Git\\bin\\bash.exe"],
"icon": "terminal-bash"
}
},
"terminal.integrated.defaultProfile.windows": "Git Bash",
"terminal.integrated.automationShell.windows": "Git Bash",
"terminal.integrated.enablePersistentSessions": false,
"terminal.external.windowsExec": "C:\\Program Files\\Git\\bin\\bash.exe"
}
现在 Ctrl+` 对我来说在集成终端中启动 Git Bash,这是我的目标,但是 VScode 在启动时仍然不启动任何东西或启动 powershell,这很烦人。有没有办法阻止 VScode 这样做?
解决方案
推荐阅读
- arrays - 在 SSIS 中使用 JSONPath 表达式获取每个子节点及其值
- django - Django:在 sqlite3 的模型字段中存储字符串数组(文件路径)
- java - 如何使用正则表达式从字符串中捕获所有实例
- javascript - 如何根据另一个组件的状态更改 CSS 属性
- node.js - 注册节点/快递的身份验证时缺少用户名错误
- arrays - 为什么嵌套数组在python中复制其元素?
- webpack - 无需重建整个静态网站的动态内容和组件?
- unix - HP-UX 上的备份命令失败
- apache - Codeigniter 删除 index.php 在本地工作,但不适用于 aws ELB
- sparql - 如何使用 Python 确定两个 SPARQL 查询是否相同?