The ubiquitous keyboard shortcut to search Next in Eclipse?

First, I added a one-time shortcut to Find Next, which works "When: Editing Java Source". Then I added the same shortcut for "When: Comparing in a Editor". However, none of these shortcuts has any effect in comparison (right-click / Compare with / ...).

How to create a keyboard shortcut in Eclipse, which works both in any kind of editor, and in both panels in comparison mode?

+3
source share
1 answer

This is not easy, but I can do it. In fact, you need to do this one at a time when you want to F3work. This is not a complete example, but we hope to give this idea.

Step 1: Start by linking F3to Find Next in windows (windows are the most common). This will allow you F3to work in java code and jsp code. However, this will not do the job F3in the JavaScript code.

Step 2: Copy the key binding you just created. When changing a copy, when the binding occurs from windows in the JavaScriptView. Note that a conflict is occurring. You will have to deal with the conflict in the usual way, either by untying another command, or by tying it to a new key. At this moment it F3works in Java, JSP and JavaScript code.

, F3 "Find Next", 2 .

. Eclipse 3.5.2.

+2

Source: https://habr.com/ru/post/1779146/


All Articles