Eclipse has the Mark Occurrences feature where it highlights all occurrences of a selected variable/method. Is there a way to navigate to next or previous marked occurrence?
Press Alt+Left to go back to the previous editor and Alt+Right to go forward.
Press Alt+Shift+Up several times until the method is selected. Each time you press this key, Eclipse will select the enclosing element of the current selection.
To skip between highlighted occurrences only, try the following:
Above the editor Window, select the down arrow next to the next annotation button.
Adjust the selection so that only "Occurrences" is marked.
Now, when you click on an item to highlight it, you can skip forwards and backwards to other occurrences using Ctrl+(comma) and Ctrl+(period).
After selecting a piece of text:
Next occurrence is ctrl+k.
Previous occurrence is ctrl+shift+k.
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