【问题标题】:VSCode - git branch opens Vim [duplicate]VSCode-git分支打开Vim [重复]
【发布时间】:2019-01-12 14:53:12
【问题描述】:

我在 VSCode 终端中使用 Git,它可以工作。 但是,如果我运行 git branch 它会打开 Vim 编辑器,所以我需要运行 :wq 才能回到终端!

这是正常行为还是我的 VSCode 设置有问题?

【问题讨论】:

    标签: git terminal visual-studio-code


    【解决方案1】:

    你在 git 中配置了什么编辑器?尝试运行

    git config core.editor
    

    看你设置了什么,对我来说价值是

    code --wait -n
    

    【讨论】:

    • 对我来说是:code --wait -n too
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-09-29
    • 2015-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-29
    相关资源
    最近更新 更多