【发布时间】:2017-09-11 15:55:26
【问题描述】:
我们可以在 VS Code 中添加多个不同的终端吗?我计划添加以下三个终端并使用所有这些终端:
- Windows 命令提示符
- PowerShell
- Git 重击
我知道我需要在Preferences => Setting中添加以下命令
// // 64-bit cmd if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\cmd.exe",
// // 64-bit PowerShell if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
// // Git Bash
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
我想在setting.json中添加以上三个命令
当我点击 + 时,应该会打开不同的终端,我想在不更改首选项的情况下使用这些终端。
在 VS Code 中是否可能?
【问题讨论】:
-
如果你在 powershell 终端中输入它,它将启动 git bash:
& "c:\Program Files\git\bin\bash.exe" -
从code.visualstudio.com/updates/v1_35 开始,您现在可以更轻松地做到这一点,请在页面底部完全查看我的答案。我通过 google 到这里结束,安装了扩展,然后一直阅读,注意到 Neil 的评论,然后转到 2019 年 5 月的发行说明并将其添加到此处作为参考
标签: visual-studio-code windows-7-x64