visual-studio-code - Visual Studio Code - 在 Windows 上的 'select default shell' 列表中添加选项?

标签 visual-studio-code vscode-settings

我想用 VSCode 终端中的各种 shell ,例如。 Git Bash .我可以设置在settings.jsonterminal.integrated.shell.windows ,但如果我选择 CMD 作为随后的默认设置,该设置将被替换。如果我添加另一个 terminal.integrated.shell.windowsbash.exe , 我被 bash 困住了,不能改变默认的 shell,如果 似乎是合乎逻辑的VSCode 仅替换第一个设置,但读取最后一个相同的设置值。

问题是“选择默认 shell ”列表中不存在 Bash,我的问题是如何添加它?

我已经为 Windows 安装了最新的 (2.22.0) 64 位版本的 Git,并希望它能为此添加必要的 env/reg 等,但没有。

尽管这应该是独立于版本的,但这是我的 VSCode 关于:

Version: 1.35.1 (user setup)

Commit: c7d83e57cd18f18026a8162d042843bda1bcf21f

Date: 2019-06-12T14:30:02.622Z

Electron: 3.1.8

Chrome: 66.0.3359.181

Node.js: 10.2.0

V8: 6.6.346.32

OS: Windows_NT x64 10.0.10240



请。我知道有类似的问题,但它们并没有真正解决我的问题。但是,对我的问题的正确答案将解决他们的问题。

最佳答案

enter image description here
如果您的问题是如何向 Terminal:Select Default Shell 添加更多终端 shell ,我不认为那是容易的。

但是你可以使用 Shell Launcher插件添加更多 shell 并在集成终端中启动它们。下面是我将 Julia 添加到列表中的屏幕截图。
enter image description here

安装:

  • 转到扩展并添加 Shell launcher .
    enter image description here
  • 转到设置(Ctrl+,) 并搜索 Shell Launcher并针对您的平台进行编辑。
    enter image description here
  • 将您的 shell 添加到列表中
    enter image description here
  • 您可以通过 F1(Command Pallete) -> Shell Launcher 启动它
    enter image description here
  • 关于visual-studio-code - Visual Studio Code - 在 Windows 上的 'select default shell' 列表中添加选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56868598/

    相关文章:

    git - 如何为某些项目禁用 git 而其他项目不在 Visual Studio Code 中禁用 git?

    visual-studio-code - 如何在纯文本文件中禁用 Visual Studio 代码下拉建议

    visual-studio-code - 防止在保存时自动格式化期间删除无效代码?

    visual-studio-code - 如何重置 Visual Studio Code 键绑定(bind)?

    visual-studio-code - 在 vscode 中启用尾随逗号

    c# - 找不到 VSCode Unity OmniSharp .NETFramework

    java - 编译错误失败,而不是在运行时抛出 “Unresolved compilation problem”

    debian - 如何在 Debian 上的 VSCode 中正确设置 Rust 环境?

    visual-studio-code - 如何轻松地将 Visual Studio Code 工作区移动到新位置?

    sublimetext3 - 在 VS Code/Atom 和 Sublime 中使用 monokai 进行函数高亮显示