如何在Eclipse中折叠代码块? [英] How to collapse blocks of code in Eclipse?

查看:453
本文介绍了如何在Eclipse中折叠代码块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天前,我的Eclipse工作正常,每个块中都会出现一个+/-,可能会崩溃(功能,类等),但现在它出现了,我不知道如何激活该功能再次。



它是Eclipse Helios,在Gentoo Linux盒子上运行。

解决方案

首选项 - > C ++ - >编辑器 - >折叠?



在编辑器窗口中右键单击并转到其中的首选项,将出现首选项对话框的相关部分。这适用于JDT,CDT等...


Some days ago my Eclipse was working fine and a +/- appeared in every block that could be collapsed (functions, classes, etc.)... but now it does appear, and I don't know how to activate that feature again.

It's Eclipse Helios, running on a Gentoo Linux box.

解决方案

Preferences -> C++ -> Editor -> Folding ?

Make a right click in the editor window and go to preferences there, then only the editor-relevant section of the preferences dialog will appear. This works for JDT, CDT etc...

这篇关于如何在Eclipse中折叠代码块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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