Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to map a hotkey to "compare to each other" in eclipse?

The key mapping options in eclipse are voluminous, but they don't seem to include "compare to each other." Is there something I'm missing?

like image 708
stu Avatar asked Jul 14 '09 20:07

stu


People also ask

Is it possible to use Eclipse shortcut mapping in JetBrains?

It's possible to use an Eclipse shortcut mapping, but since I wasn't going to switch back, I've decided to learn the default mapping. JetBrains offers a nice overview (PDF) containing most important shortcuts. To find the correct row faster, I have added another column with Eclipse shortcuts. So let's say I want to see a class outline.

What is the best keyboard shortcut in Eclipse for Java?

Top 30 Eclipse Keyboard Shortcuts for Java Programmer. Top 30 Eclipse Keyboard Shortcuts for Java Programmer. 1) Ctrl + Shift + T for finding class even from jar This keyboard shortcut in Eclipse is my most used and favorite shortcut.

What is the shortcut to find next in Eclipse?

9) Ctrl + k and Ctrl + Shift +K for find next/previous 10) Go to a type declaration: F3, This Eclipse shortcut is very useful to see function definition very quickly. These Eclipse shortcuts are very helpful for editing code in Eclipse.

Can I assign the same shortcut to two different commands in Eclipse?

You can assign the same shortcut to two different commands, but if the context differs Eclipse will only execute the one command. I suggest you don’t change the context. Notice that Eclipse shows you which keys conflict with the selected one if their in the same context.


1 Answers

No, there is no shortcut, but you can open the Preferences (General / Keys), type "Compare", and assign a shortcut there.

(two commands can fit your description:

  • either to 'Compare With Another Branch or Version, in a CVS context
  • or "Compare With Other Resource": Compare resources, clipboard contents or editors, which is certainly what "Compare to > Each other" is about )

alt text
(source: eclipse.org)

like image 132
VonC Avatar answered Nov 28 '22 20:11

VonC