Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highlighting modified lines in Eclipse

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)

Is it possible to get a similar effect in Eclipse?

like image 396
Sudar Avatar asked Mar 15 '10 12:03

Sudar


People also ask

How do I turn off highlighting in Eclipse?

Alt + Shift + O disables and enables this feature, which is called Mark Occurrences. There is also a toolbar button to toggle it on and off.

Why is Eclipse highlighting my code?

This is activated because of code coverage. If you want to remove it then follow these steps. Go to "Windows -> Show View -> Coverage" Select it.

Why is my code highlighted green in eclipse?

Code Editor in SuiteCloud IDE Plug-in for Eclipse The code editor shows the code for the currently targeted file in your SuiteScript. As you step through your script, the code editor automatically scrolls through the source code. The line highlighted in green is the line set to execute next.


1 Answers

  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.

like image 92
Dan Allen Avatar answered Sep 17 '22 12:09

Dan Allen