How do I go to “next occurrence” in Eclipse

后端 未结 5 2046
执笔经年
执笔经年 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 17:37

    You didn't mention how exactly ctrl+k didn't work for you, but it's what I use in similar circumstances. I put the cursor into or select the word that I'm looking for in the editor and then press ctrl+k to move me to the next occurrence. Since the next occurrence gets selected, I can use the same combination to move forward or press ctrl+shift+k (Find Previous) to move back. (Sorry if that sounds patronizing, but ctrl+k sounds exactly like what you're looking for and I don't know the details of the difficulty you had with it.)

    I agree about the other combinations. If I have to take my hand off the keyboard, I may as well use the scrollbar.

    Best of luck.

提交回复
热议问题