How to fold for, while and if blocks in Java Eclipse [duplicate]
问题 This question already has answers here : Is there a way to fold eclipse sub-blocks like an “if” statement? (8 answers) Closed 4 years ago . I'm using Eclipse Luna for Java. By default, Eclipse only lets me fold Comments, Header Comments, Inner Types, Members and Imports. Is there a plugin that allows me to fold for , while and if blocks? I searched the marketplace and various sources and found nothing for this. Edit: Before downvoting, consider I have thoroughly researched this before posting