1

I'm wondering if you can do something similar to this functionality (available with Zend Studio 5.1) in Eclipse. There is an image of it in action here: http://tinypic.com/r/2d1pao1/6

As you can see, it doesn't just put a box around the starting brace like Eclipse does, it actually shows you the declaration. This is especially handy when you have a really long declaration and don't want to scroll up and find its beginning.

asked Dec 15, 2009 at 22:20
1
  • Note that Eclipse 3.8 and 4.2 M7 - New and Noteworthy" introduced Bracket matching improvements in Java editor. I have updated my answer below. Commented May 6, 2012 at 11:18

1 Answer 1

4

(Update May 2012)

The latest "Eclipse 3.8 and 4.2 M7 - New and Noteworthy" introduced Bracket matching improvements in Java editor:

You can hover over a closing curly brace and see the source near the matching opening brace in a hover.
This is helpful when you want to see the code near the start of a long code block.
The hover also tells the number of lines in the code block.

bracket-hover

The hover is also useful to temporarily 'highlight' a short code block.

bracket-hover for short function


Original answer (December 2009)

Actually, you already have a variant of that with the outline view

If you click anywhere in a function (end of curly brace or anywhere else), the outline view will... outline the relevant function where you are in.

alt text
(source: eclipse.org)


Otherwise, you need a plugin like Eclipse Source Helper
(update site: http://www.hexapixel.com/update)

alt text

Glorfindel
22.8k13 gold badges97 silver badges124 bronze badges
answered Dec 15, 2009 at 22:34
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.