有没有办法在Eclipse中手动折叠代码?
有没有办法在 Eclipse 中的代码中手动创建折叠点? 我知道如何启用折叠以及如何设置自动首选项,但我喜欢能够设置自己的折叠点,这样我就可以忽略代码的某些部分。 思考 VS 中的区域。
我知道 VS 和 NetBeans 中有,但我找不到在 Eclipse 中设置手动折叠点的方法。
Is there any way to manually create fold points in code in Eclipse? I know how to enable folding and how to set the auto preferences, but i like being able to set my own fold points so I can ignore certain parts of my code. Think regions in VS.
I know there is in VS and NetBeans, but I cannot find a way to set manual fold points in Eclipse.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Eclipse 的 Coffee bytes 折叠插件仍然存在。 但页面已移动。
概述以及如何获取它可以在此处找到。
我已经使用更新页面将其安装在 eclipse 中。
在 Eclipse 中转到帮助 -> 安装新软件
输入:eclipse.realjenius.com/update-site
选择插件并按照屏幕上的说明进行操作。
我对 Eclipse 开发还很陌生,在安装代码折叠插件之前必须安装 mylyn。
The coffee bytes folding plug-in for eclipse is still alive. But the pages have moved.
An Overview and how to get it can be found here.
I've installed it in eclipse using the update page.
In Eclipse go to Help -> Install new Software
Enter: eclipse.realjenius.com/update-site
Select the plugin and follow on-screen instruction.
I'm still pretty new to eclipse development and had to install mylyn before installing the code folding plugin.
我是 Eclipse 新手,但由于 IDE 允许您折叠预处理器指令,因此您只需执行“#if 1 .... #endif”即可有效设置手动折叠。
I'm new to Eclipse, but since the IDE lets you fold preprocessor directives, you can just do "#if 1 .... #endif" to effectively set up manual folding.
不,eclipse没有任何选项来提供手动折叠插件。
No, eclipse does not have any option to provide manual folding plugins.
我不认为 Eclipse 内置了手动折叠,但我确实使用了以下插件的早期版本。
根据评论:该插件已针对 Eclipse 3.5 重新编译,可在 Apache Isis 站点获取。 还提供直接下载链接。 它似乎也适用于 Eclipse 3.6。
I don't think Eclipse has built in manual folding, but I did use a previous version of the following plugin for it.
Per the comment: The plugin has been recompiled for Eclipse 3.5 and is available at the Apache Isis site. A direct download link is also available. It also appears to work for Eclipse 3.6.