Highlighting modified lines in Eclipse

前端 未结 8 1364
执笔经年
执笔经年 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

    1. Open the Preferences window
    2. Search for "diff"
    3. Select Quick Diff
    4. Change the "Use this reference source" to a SCM provider (like CVS, SVN or Git)

    By default, it compares to the latest version on disk, which, if you've saved the file, is no diff at all. You have to activate the comparison against a SCM repo. I'm not sure what happens if you more than one type of SCM since this is only a single selection.

提交回复
热议问题