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

帅比萌擦擦* 提交于 2019-12-12 00:15:51

问题


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:


Try using the Coffee Bytes plugin.

the archive and installation instructions can be found at this blogspot.

Alternately, IntelliJ supports folding all blocks surrounded by brackets e.g.{}.



来源:https://stackoverflow.com/questions/30848612/how-to-fold-for-while-and-if-blocks-in-java-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!