Eclipse: browsing sourcecode using { as marks  
Author Message
Oliver Madlener





PostPosted: 2005-7-6 3:20:00 Top

java-programmer, Eclipse: browsing sourcecode using { as marks Hello everyone,

I am using eclipse 3.0.2 on Linux. Is it possible to browse
Java-sourcecode using the brackets { as a jumping point?
example

public void foo(){ <- first entry

if(isFoo){ <- second entry

doFoo();

}else{ <- third entry

doAnotherFoo();

}

thanks alot for any help!

kind regards

Oliver
 
Roland





PostPosted: 2005-7-6 8:16:00 Top

java-programmer >> Eclipse: browsing sourcecode using { as marks On 5-7-2005 21:19, Oliver Madlener wrote:
> I am using eclipse 3.0.2 on Linux. Is it possible to browse
> Java-sourcecode using the brackets { as a jumping point?
> example
>
> public void foo(){ <- first entry
> if(isFoo){ <- second entry
> doFoo();
> }else{ <- third entry
> doAnotherFoo();
> }

Select the opening brace and then press Ctrl-K to find next occurrence,
Ctrl-Shift-K for previous.

This should work for other text selections too: for instance when you
select 'foo' and press Ctrl-K, it will find the next occurrence of 'foo'.

The options in the 'Find and Replace' dialog (Ctrl-F) affect the
behavior of Ctrl-K. When you have selected 'Case sensitive' for example,
'Foo' in isFoo, doFoo, etc. will /not/ be found when pressing Ctrl-K
after selecting 'foo'. Enabling the 'Wrap search' option in the 'Find
and Replace' dialog can be useful too, as it will not stop searching at
the end of the file.

A list of default keyboard shortcuts can be found at
<http://eclipse-tools.sourceforge.net/shortcuts.html>.
--
Regards,

Roland de Ruiter
` ___ ___
`/__/ w_/ /__/
/ \ /_/ / \