'Eclipse IDE Scope Highlighting?

When I first learned Java, I was using an IDE called "BlueJ." It had this feature called "Scope Highlighting" which made it very easy to read blocks of code. Now I've moved on from BlueJ and began using Eclipse. I'm currently in the process of customizing Eclipse to my liking and would like this Scope Highlighting feature inside Eclipse.

I've searched everywhere for an answer on how to do it but I cannot find any information pointing to a solution for doing it in Eclipse.

Here's a picture to demonstrate what Scope Highlighting looks like:

Notice the background color behind each method



Solution 1:[1]

I think the best option for you is EditBox, a scope highlighting plugin for Eclipse: http://editbox.sourceforge.net/

Solution 2:[2]

you can use Shift + Alt + arrow_up but many people dont realize you can just double click the delimiter (like a bracket) and it will highlight the entire scope. Try double clicking your if statements bracket for example and watch eclipse highlight the entire scope. It works with any delimiter. so you can use parenthesis as well.

as a side note: if your using intelliji checkout this plugin works great: https://github.com/izhangzhihao/intellij-rainbow-brackets#screenshots

Solution 3:[3]

This isn't exactly what you're after but you can put your cursor in a method and then click the Show Source Of Selected Element only button on the toolbar. Your editor gets reduced to just that method. Click again and your back to your entire file. enter image description here

Solution 4:[4]

I doubt eclipse does have the same function as blue j.The best advise I can give you, is to change your theme to your liking which would enable you to easily select and highlight the block of code...and to customise your theme , go to http://eclipsecolorthemes.org/. ....

If you still have a problem, go to http://codejava.co.uk/contact.html and send your email.you can create a dummy one if want, then I will send you XML files I use for my eclipse themes.

Solution 5:[5]

can Bracketeer do this ? its an eclipse plug in ..

http://marketplace.eclipse.org/content/bracketeer-java-jdt#.UK6sY4fAdLc

Solution 6:[6]

Maybe you will also like the VSCode extension "Blockman". It highlights nested code blocks based on curly/square/round brackets, html/xml tags and Python/Yaml indentation. (I am the author of Blockman). . https://i.ibb.co/31F0rm9/vscode-blockman-intro-leodevbro-extension3.png . .

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Utku Ă–zdemir
Solution 2
Solution 3 Tod
Solution 4 Lawryenzo
Solution 5
Solution 6 leodevbro