Abh*_*dge 23 powershell git-bash visual-studio-code
我已将 VSCode 中的集成默认终端设置为 Git Bash,但每当我启动 VSCode 时,都会弹出 powershell 而不是 bash。然而,它不会改变默认的终端设置,但它很烦人。我尝试从设置中删除 powershell 的配置文件,但这似乎没有任何作用。为什么会发生这种情况?
Mar*_*ark 12
确保升级到 vscode v1.60.1 - 该版本已修复此问题。
请参阅选择默认配置文件实际上并不打开 gitbash。重新启动后,在启动时,它只是保持打开 PowerShell。
同样的事情也发生在我身上,并且 Insiders' Build 05/14/2021 中提到的修复实际上确实为我修复了它。与此同时,打开另一个终端总是会为我打开 git bash - 但这很痛苦。
这对我有用:
{
"terminal.integrated.defaultProfile.windows": "Git Bash",
"terminal.integrated.profiles.windows": {
"PowerShell": null,
"Git Bash": {
"source": "Git Bash"
},
"Windows PowerShell": null
},
"terminal.integrated.automationShell.windows": "Git Bash",
"powershell.enableProfileLoading": false,
"powershell.integratedConsole.showOnStartup": false
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6130 次 |
| 最近记录: |