Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a key binding for Next Difference and Previous Difference in Eclipse Compare Editor?

In compare editor there are buttons

  • Next Difference
  • Previous Difference
  • Next Change
  • Previous Change

I'd like to assign key bindings for Next Difference and Previous Difference buttons. However in preferences I see only Select Next Change and Select Previous Change commands (both in category Compare). How can I assign key bindings to buttons referring to differences?

My Eclipse:
Version: Indigo Service Release 2
Build id: 20120216-1857

like image 882
Piotr Dobrogost Avatar asked Apr 16 '12 15:04

Piotr Dobrogost


People also ask

What does Ctrl k do in Eclipse?

In Eclipse, if the cursor is over a word and you press Ctrl + K you will jump to the next occurrence of that word in the file.

What is Ctrl Shift L in Eclipse?

2. 3. Quick Search became part of the Eclipse platform some time ago. It can be found in Search > Quick Search and the default key is Ctrl+Alt+Shift+L.

How do I bind a key in Eclipse?

The main preference page can be found under Window > Preferences > General > Keys (or faster: Press Ctrl+3, type Keys and press Enter). From here you can see all commands and assign/change their associated keyboard shortcuts.


2 Answers

There are default shortcuts for these: CTRL-. (next) and CTRL-, (previous)

like image 122
moeTi Avatar answered Sep 27 '22 03:09

moeTi


Next Difference, Previous Difference:

  • No key mapping (still in Eclipse Neon ) :(

Next Change, Previous Change:

  • Set "When" to "Comparing in an Editor" worked for me.

enter image description here

like image 39
Daniel Hári Avatar answered Sep 26 '22 03:09

Daniel Hári