Community
Participate
Working Groups
In the Java code window, you can fold (collapse) a block of code. When you use the mark occurrences preference, the folded line is not marked when it contains that occurrence. (Note that on unfolded text, the keyword is highlighted and the line is marked on the right side of the scrollbar in the window.) Granted, the text to mark is not visible so it's not going to highlight the text, but it should still mark the folded line to show that the occurrence actually exists inside the fold. (It took me a while to figure out why my methods/class variables didn't always show the number of occurrences I expected.) -- I propose adding an option to the Preferences | Java | Editor | Mark Occurrences window: [x] Also mark folded lines that contain this occurrence -- I assume that the current coding is based on what it finds in the code window (which excludes folded text) rather than the actual code for the file. If this features is checked, the search will have to be done on the entire code and then mark each line that contains that text AND each folded block that contains that text. Obviously, multiple marks on that line will have to follow the current precedence rules for marking lines.
*** This bug has been marked as a duplicate of 63692 ***