【问题标题】:Vscode git shortcut "ctrl+enter to commit on master" not working on Linux mintVscode git快捷方式“ctrl + enter to commit on master”在Linux mint上不起作用
【发布时间】:2020-05-08 07:16:30
【问题描述】:

enter image description here

所有给定的 GitHub 快捷方式都不起作用。我无法使用鼠标或键盘在源代码管理部分中使用 git 功能。我正在使用 Linux Mint 19.3 Tricia。

【问题讨论】:

  • 内核? unname -r
  • 并检查您的键绑定、文件-> 首选项-> 键盘快捷键。如果没有定义,请搜索您的绑定。
  • 除了你的键绑定是为了运行某种 Git 命令之外,这似乎与 Git 无关,与你的编辑器有关。

标签: git github visual-studio-code linux-mint


【解决方案1】:

问题已通过合并此代码解决

"git.suggestSmartCommit": true,

在 settings.json 文件中

【讨论】:

    【解决方案2】:

    我在我的 keybindings.json 中覆盖了默认的 gitlens 命令,但是在该插件的最新版本中,“when”属性的值发生了变化,来自

    {
            "key": "alt+a",
            "command": "gitlens.toggleFileBlame",
            "when": "editorTextFocus && gitlens:isTracked"
    },
    

    到:

    {
            "key": "alt+a",
            "command": "gitlens.toggleFileBlame",
            "when": "editorTextFocus && gitlens:activeIsBlameable"
    },
    

    【讨论】:

      猜你喜欢
      • 2017-09-12
      • 1970-01-01
      • 2014-06-01
      • 2018-11-12
      • 2013-07-05
      • 1970-01-01
      • 2013-07-26
      • 1970-01-01
      • 2015-11-30
      相关资源
      最近更新 更多