git - 有什么方法可以阻止 Sublime Text 的 Git 插件弄乱状态栏吗?

标签 git plugins sublimetext sublimetext3

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

最佳答案

状态栏中的“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,如注释所示。

关于git - 有什么方法可以阻止 Sublime Text 的 Git 插件弄乱状态栏吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29168845/

相关文章:

php - 我如何修改 Sublime Text 中的样式 block 注释

makefile - Sublime Text 构建系统,只有 "make"

具有现有目录结构的 Git 子目录过滤器

git - 如何 git 只列出被跟踪的目录?

plugins - 将 map 作为 Maven 插件参数

java - Genymotion 插件无法在 Eclipse 中显示

css - 升华器 : problems with csslinter

git - 将现有仓库推送到新的 Github 仓库时忽略某些文件

git - Bitbucket 的 80 个字符的垂直线指南

python - Pytest 插件 : Overriding pytest_runtest_call and friends