Eclipse:显示git更改 [英] Eclipse: showing git changes
问题描述
当我第一次安装eclipse时,我有一个不错的功能.将文件添加到git并提交更改后,对该文件的任何新更改将在eclipse中以灰色显示.我可以将鼠标悬停在已更改的行的左侧,而日食会向我显示我在此处所做的更改.我发现它非常有用,并且经常使用.更重要的是,我可以在文件中一目了然地看到所有更改.在进行了一些随机设置更改后,突然该功能从Eclipse中消失了.现在,我无法再次打开该功能.如果有人对如何恢复该功能有任何想法,那将是不错的选择.
I had a nice feature in eclipse when I first installed it. Once a file is added to git and changes are committed, any new changes to that file would show in gray color in eclipse. I could hover over on the left of the changed line and eclipse would show me the changes I have made there. I find it very useful and use it quite often. More importantly I can see all the changes at a glance in a file. Suddenly this feature is gone from the eclipse after doing some random settings change. Now I can't turn on the feature again. If anyone has any idea how to get the feature back would be nice.
推荐答案
右键单击 左标尺并启用 显示快速差异( Ctrl + Shift + Q ).
Right-click the left ruler and enable Show Quick Diff (Ctrl+Shift+Q).
这会显示您自上次保存以来默认情况下所描述的更改.要显示更改自上次Git提交以来,请在 常规>编辑器>文本编辑器>快速区分 中更改首选项.
This shows changes as you described by default since the last save. To show changes since the last Git commit instead, change the preferences in General > Editors > Text Editors > Quick Diff.
对于 Git怪,请右键单击左标尺,然后选择 显示修订信息 ,该选项默认情况下无法启用.
For Git blame right-click the left ruler and choose Show Revision Information which cannot be enabled by default.
这篇关于Eclipse:显示git更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!