When I am comparing two files in Eclipse (using, for example, "Compare With" --> "Local History"), what keyboard shortcuts are available?
I would like to be able to go to the next/previous diff and copy the selected diff left without having to click the tiny little buttons.
Thanks!
By pressing Ctrl+F7 once, Eclipse switches between the currently active and last active view.
Search – Eclipse Shortcuts CTRL SHIFT G – Search for current cursor positioned word reference in workspace. CTRL H – Java search in workspace.
About Shortcuts The Key Assist action which can be invoked by clicking Ctrl + Shift + L shows us all the accelerators or shortcut keys available 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.
To complete Artem's answer, after Preferences->General->Editors->Keys
, search for:
All those keys in the "Compare
" section have no shortcut assign by default, so you can add the ones of your choice.
Set your own keys as instructed by @Artem and @VonC.
In Eclipse Galileo, however, the path is Window > Preferences > General > Keys
.
For each command you wish to set:
Click on the Command Name
TIP: Sort by "Category" to group all "Compare" commands.
Click on the "Binding" textbox
Then, select the keys you wish to use, Eclipse will record them for you.
TIP: You can enter a sequence of keys in addition to key combination(s).
Set "When" drop down box to "Comparing in an Editor."
TIP: This setting will limit your hot key(s) to only be activate in the chosen context.
Intuitive Hot Key settings: (my recommendations, not from a standard)
With eclipse, when you are in a window and you have a button to do a action but this button doesn't have a tooltip to show you his shortcut, go to Navigate
menu.
The most of time, shortcuts are shown there.
Actually you can define whatever you want to be a short cut for this. Preferences->General->Editors->Keys. EDIT: For some reason I don't see that option appears there. O_o
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With