Ubiquitous keyboard shortcut for Find Next in Eclipse?
First I added a single-key shortcut for Find Next that works "When: Editing Java S开发者_运维问答ource". Then I added the same shortcut for "When: Comparing in an Editor". However, none of these shortcuts has any effect in comparison view (Right-click / Compare With / ...).
How can I create a keyboard shortcut in Eclipse that works in any kind of editor as well as in both panes in the compare view?
Its not easy, but I can be done. It actually has to be done one at a time where you want F3 to work. This is not a complete example, but will hopefully give the idea.
Step 1: Start by binding F3 to to "Find Next" in windows (windows is the most general). This will get F3 to work in java code and jsp code. However this will NOT make F3 work in JavaScript code.
Step 2: Copy the key binding you just made. In the copy change when the binding occurs from windows to JavaScriptView. Note that a conflict occurs. You will need to deal with the conflict in the usual way, by either unbinding the other command or binding it to a new key. At that point, F3 works in Java, JSP, and JavaScript code.
As you find other places where you want F3 to mean "Find Next" simply repeat Step 2 above for that location.
Note: Tested under Eclipse version 3.5.2
精彩评论