How to fold for, while and if blocks in Java Eclipse

时间:2015-06-15 15:05:47

标签: java eclipse eclipse-plugin folding code-folding

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. Other similar questions on the site don't solve this problem or are completely outdated and resources no longer available. Also, I'm not looking for a #beginregion #endregion workaround (the code is already written and that's not really a good solution).

1 个答案:

答案 0 :(得分:2)

尝试使用Coffee Bytes插件。

可以在this blogspot找到存档和安装说明。

或者,IntelliJ支持折叠括号括起的所有块,例如{}。