How do I go to “next occurrence” in Eclipse

后端 未结 5 1992
执笔经年
执笔经年 2021-02-01 17:30

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

5条回答
  •  故里飘歌
    2021-02-01 18:03

    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.

提交回复
热议问题