Skip to main content



      Home
Home » Newcomers » Newcomers » How to goto next instance
How to goto next instance [message #240672] Wed, 14 November 2007 15:21 Go to next message
Eclipse UserFriend
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 #240677 is a reply to message #240672] Wed, 14 November 2007 15:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: www.nospam.net

Alex wrote:
> 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
>

Click the yellow downward arrow will do it.(Short cut is Ctrl and "."
pressing same time; Ctrl and "," other direction). If you click the
black arrow head, you can choose occurrences, errors, warnings, search etc.
Re: How to goto next instance [message #240681 is a reply to message #240677] Wed, 14 November 2007 17:28 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to goto next instance [message #240686 is a reply to message #240681] Wed, 14 November 2007 17:36 Go to previous messageGo to next message
Eclipse UserFriend
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 #240691 is a reply to message #240686] Wed, 14 November 2007 21:47 Go to previous messageGo to next message
Eclipse UserFriend
Ahhh - awesome! Thanks Mark!

I hope eclipse will remember my checked preferences. I can't imagine
wanting it to be anything else.
Re: How to goto next instance [message #240696 is a reply to message #240691] Wed, 14 November 2007 22:06 Go to previous messageGo to next message
Eclipse UserFriend
Alex wrote:
> Ahhh - awesome! Thanks Mark!
> I hope eclipse will remember my checked preferences. I can't imagine
> wanting it to be anything else.

Hi Alex. I believe this preference, like most, is saved in your
workspace. If you create a new workspace, you can export and import
preferences so you don't have to set them up again. If you get a chance,
look at the Window / Preferences stuff. There are quite a lot of
configuration options. Also, check out the Help / Key Assist for a quick
list of the many available keyboard shortcuts. Mark
Re: How to goto next instance [message #240797 is a reply to message #240691] Fri, 16 November 2007 02:39 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Finding resource files in an Eclipse project
Next Topic:show markers beside editor
Goto Forum:
  


Current Time: Wed May 07 23:55:57 EDT 2025

Powered by FUDForum. Page generated in 0.25076 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top