How to goto next instance [message #240672] |
Wed, 14 November 2007 15:21  |
Eclipse User |
|
|
|
I've enabled instance highlighting in Eclipse but I'm still missing one of
my favorite features of Intellij's IDEA which is the ability to navigate
to the next / previous instance in Java source code.
Ctrl-K is not cutting it for me since it is not aware of the semantics of
whatever is highlighted. Clearly, Eclipse knows where all instances are of
a variable, but the ability to navigate between them continues to elude
me. Can this obvious feature really be missing?
Please let me know if it's possible!
Thanks,
Alex
|
|
|
|
|
Re: How to goto next instance [message #240686 is a reply to message #240681] |
Wed, 14 November 2007 17:36   |
Eclipse User |
|
|
|
Alex wrote:
> Hi,
>
> Thanks for getting back to me but that seems to just go to the next
> 'annotation', not the next instance of the highlighted variable. Did you
> understand my question? I'll re-phrase it...
> For example, if I click on an instance variable 'i', I can see all the
> i's are highlighted in the editor. I want a keyboard command to navigate
> the cursor from one to the next within the file. I don't want to
> navigate to the next occurrence of the letter 'i', but only amongst the
> actual occurrences of the variable. Right now, all I can do it scan the
> file and look for the next highlighted block.
> Any other suggestions?
> Thanks,
>
> Alex
>
Hi. I found the first explanation a little cryptic. Here is a more
detailed explanation. Look at the toolbar above the edit view. On it,
you will see a yellow down arrow and up arrow. Next to these is a
pull-down menu that lists a number of words starting with Bookmarks. By
default, I think, Occurrences is unchecked. If you check this, then you
can use these arrows or Ctrl+. / Crtl+, to move to next and previous
occurrence. Hope this helps. Mark
|
|
|
|
|
Re: How to goto next instance [message #240797 is a reply to message #240691] |
Fri, 16 November 2007 02:39  |
Eclipse User |
|
|
|
Alex wrote:
> Ahhh - awesome! Thanks Mark!
A similar feature is Search > Occurrences In File (Ctrl+Shift+U) which
will show you the results in the Search view. The benefit of this is
that the results stay while moving the caret around in the editor.
Dani
> I hope eclipse will remember my checked preferences. I can't imagine
> wanting it to be anything else.
|
|
|
Powered by
FUDForum. Page generated in 0.25076 seconds