类似于Visual Studio #region ... #endregion 可以将一段代码包围起来使其成为在 IDE 中可以被折叠或展开的代码块,这一功能可以提高代码的可读性。
为那些习惯把代码归置整齐的朋友解决了这一问题。如下图中的 //[start] 和 //[end] 之间的部分
下载地址:https://download.csdn.net/download/qq_17725779/25941888
安装说明:只需将压缩包中的 com.cb.eclipse.folding_1.0.6.jar 放到 %eclipse root%\plugins 目录下,重新启动 eclipse 。
配置说明:启动eclipse后,进入 window->preference 菜单选项,在配置窗口中选择 java->editor,select folding to user 中选择"Coffee Bytes Java Folding",勾选 User Defined Regions 保存后重启 eclipse 。