我在 Sublime Text 3 中看到了一种在将光标放在代码行上后显示 git author commit 和 text 的方法(下面的屏幕截图)。我需要安装哪个包?
该功能由GitGutter包提供;特别是它由show_line_annotation设置控制:
// (ST3, Build 3124+ only)
// Display a phantom text at the end of the active line with information
// about who changed it using the output of `git blame`.
// "auto" -- show line annotation if word wrap is disabled (default)
// "true" -- always show line annotation
// "false" -- never show line annotation
"show_line_annotation": "auto",
Run Code Online (Sandbox Code Playgroud)
上面显示的是默认值,只要关闭自动换行,它就会启用它。如果您使用自动换行,那么您需要true在自定义设置中修改设置以查看它的实际效果。
| 归档时间: |
|
| 查看次数: |
1172 次 |
| 最近记录: |