In Eclipse you can turn on \"Mark Occurrences\", and then it will highlight every occurrence of a given variable in the current scope. That\'s great, but I\'d really like to mo
There is a command "Occurrences in File" that is not bound to any key by default. You can run it by pressing Ctrl+3
and then typing occurr
.
It will put all the current variable in the current file in the Search results. Now Ctrl+.
and Ctrl+,
will navigate through those occurrences, instead of through the warnings/errors list.
In order to go back you would want to clean search results. It seems this command does not have a key bound either. It is not even shown as a command in the Ctrl+3
list. But you may also just do another search and it will overwrite the previous one results.