Community
Participate
Working Groups
Created attachment 250351 [details] Better scope indication I love bracket highlighting and related features. However, as it is right now, it only works for rather short scopes. When a control flow structure spans dozens of lines, it's rather hard to see what the matching element is. Take this piece of code, for example: ------------------------------------------------------------------------ public class Test { public static void main(String[] args) { boolean condition = true; label: for (;;) { if (condition) break label; if (condition) return; } } } ------------------------------------------------------------------------ When I put the caret on "return", then "void" and the curly brace closing the method are highlighted only subtly. When I put the caret on "break", then "label" and the curly brace closing the for loop are highlighted only subtly. For me, it would be very useful if there would be some visual help tracing the whole block from top to bottom either directly in the editor, or at the left side of the editor, where line numbers and tags are located. Currently, there is a blue-ish box showing the scope of the whole method, but when I highlight "break", I'm more interested in the scope of the for loop. I've attached a screenshot with an illustration of what I mean.
*** This bug has been marked as a duplicate of bug 84878 ***