1.插件下载、安装
eclipse plugin:http://incubator.apache.org/isis/com.cb.eclipse.folding.KAM-3.5.zip(也叫com.cb.eclipse.folding 1.06,还有个名字:coffee-bytes),若链接失效可搜索名称找资源。复制插件到相应目录,重启eclipse。
2.插件配置
选择 "Windows->Preferences"
选择 "Java->Editor->Folding"
选中 "Enable folding" option
在 "Select folding to use:" 选项中选择 "Coffee Bytes Java Folding"
选中 "User Defined Regions" 然后到"User Defined Regions"下设置一下标示符。
确定后重启eclipse即可生效。
亲测eclipse 3.7可用
参考:
http://kosiara87.blogspot.com/2011/12/how-to-install-coffee-bytes-plugin-in.html
http://stackoverflow.com/questions/6940199/how-to-use-coffee-bytes-code-folding
https://code.google.com/p/coffee-bytes/source/checkout