是否有一种方式来折叠eclipse子块,如“if”声明? [英] Is there a way to fold eclipse sub-blocks like an "if" statement?

查看:143
本文介绍了是否有一种方式来折叠eclipse子块,如“if”声明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,Eclipse只折叠java文档和功能级别,但是在阅读长方法时,如果/ else等可能会有很多,有没有办法折叠?

Currently Eclipse only fold the java doc and at function level, but when reading long methods, there could be quite a lot of if/else etc, is there a way to fold them?

推荐答案

似乎Eclipse没有内置的折叠if / else语句的支持,但允许折叠其他更复杂的情况,如匿名内部类。尝试寻找插件,如这一个(最后修改2007年,尝试如果它支持您的Eclipse版本)。

It appears Eclipse does not have built-in support for folding if/else statements but allows folding for other more complex cases like Anonymous inner classes. Try looking for plugins like this one (last modified 2007, try it if it supports your Eclipse version).

这篇关于是否有一种方式来折叠eclipse子块,如“if”声明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆