Intellij IDEA: Highlighting Loop Break Points

Eclipse has the ability to highlight breakpoints in a loop: I can place the cursor on break; , and the loop itself from which it exits will be highlighted:

enter image description here

However, this feature does not appear to be in IDEA:

enter image description here

Are there any hidden preferences or a third-party plugin that does the same for IDEA?

+6
source share
2 answers

The closest I can describe is to use the Find Ad shortcut (Command + B or CTRL + B), for which you need to highlight break instead.

If you are in a method that returns void , it will take you to the outermost bracket that will be broken. In some cases, return methods instead indicate a return statement, which makes this function not completely reliable.

As long as this correctly shows you which cycle it breaks out, as far as I know, in vanilla IntelliJ there is nothing that does what you describe out of the box.

+2
source

Try putting your cursor in break and pretty "Ctrl-B"

+1
source

Source: https://habr.com/ru/post/987212/


All Articles