Highlighting modified lines in Eclipse

前端 未结 8 1385
执笔经年
执笔经年 2021-01-29 22:11

In netbeans, if I open a file which is under version control the lines which are modified are highlighted in the left. (green for new lines and blue for modified lines)

8条回答
  •  日久生厌
    2021-01-29 22:23

    There are at least two things you must do to get revision-based change highlighting (i.e., ones that do not disappear when the file is saved) to show up in Eclipse's "overview ruler" when using Git:

    1. Prior to import, make sure that Preferences > Team > Git > Projects > Automatically Share project that are located inside Git repositories is checked or import the project into your workspace using Import... > Git > Projects from Git (as pointed out by @cornelius in a comment on another answer)
    2. Enable Quick Diff and select "A Git Revision" as the reference source: Preferences > Editors > Text Editors > Quick Diff

提交回复
热议问题