Skip to content
Advertisement

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

Advertisement

Answer

I’m afriad that closest you can get is Shift + Alt + arrow_up

It is selecting wider block of code. pressing this few times will give you very similar result to what you are searching for. I use it often.. it is useful, also for refactoring.


EDIT: As @j2emanue said: you can just double click the delimiter (like a bracket) and it will highlight the entire scope.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement