【问题标题】:Is there any way of stopping Sublime Text's Git plugin messing with the status bar?有没有办法阻止 Sublime Text 的 Git 插件弄乱状态栏?
【发布时间】:2015-05-23 23:58:37
【问题描述】:

我正在使用 Sublime Text Git 插件(带有 ST3),但我不需要也不想要它添加到状态栏(在 UI 底部)的内容。我似乎无法关闭它。在 Git.sublime-settings 中,我将 statusbar_branchstatusbar_status 都设置为 false,这删除了部分但不是全部插件的状态栏输出。我仍然得到“比较:HEAD”。有什么办法也可以禁用它吗?

【问题讨论】:

    标签: git plugins sublimetext sublimetext3


    【解决方案1】:

    状态栏中的“Comparing against HEAD”消息实际上不是由Git插件产生的,而是由GitGutter产生的。

      // Determines whether GitGutter will show informations in the status bar
      // Set "none" to hide these informations
      // Set "default" to show in the status bar what you are comparing
      // against, how many lines have been inserted or modified and how many regions
      // have been deleted.
      // Set "all" to also show on what branch you are
      "show_status": "default",
    

    默认配置是在状态栏中显示来自 GitGutter 的信息。

    如果您想禁用它,只需将 show_status 设置为 none,如 cmets 所示。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-02
      • 1970-01-01
      • 2011-02-28
      • 1970-01-01
      • 2021-04-11
      • 2013-08-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多