Eclipse 手动代码折叠类似于 Visual Studio 区域
Visual Studio 具有使用区域手动代码折叠的出色功能。我是 Eclipse 和 Android 的新手,但无法找到如何在 Eclipse 中执行此操作。我在 Eclipse 中缺少这个功能,绝望地
有人在 Eclipse 中实现了这个功能,
提前致谢
visual studio has an excellent feature for manual code folding by using regions. i am new to eclipse and android but cant find figure out how to do this in eclipse. i am missing this feature in eclipse desperately
has anyone achieved this in eclipse
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用 eclipse Coffee-Bytes 插件一年多了。可以配置此 Eclipse 折叠插件,使其与 Visual Studio 折叠相同。锁定此和这个。希望对您有帮助。
I use eclipse Coffee-Bytes plugin over a year. This eclipse folding plugin can be configured so that it was identical to visual studio folding. Lock this and this. Hope it's help you.
可以通过编写自己的小型 Eclipse 插件来添加手动代码折叠。需要执行的是 两个类并将它们打包到注册到 org.eclipse.jdt.ui 的 Eclipse 插件中。 FoldingStructureProvider 扩展点。
这可能不是您所希望的 awnser,但据我所知,这是将自定义代码折叠添加到 Eclipse Java 编辑器的唯一方法。从您的问题中我发现您主要是 Visual Studio 用户,因此不熟悉 Eclipse 插件架构,但根据您对一般插件架构的经验,扩展 Eclipse(小规模)非常简单。
Manual code folding can be added by writing your own small Eclipse plug-in. What it take is implementing two classes and packing them into an Eclipse plug-in that registers onto the org.eclipse.jdt.ui.foldingStructureProvider extension-point.
This is probably not the awnser you were hoping from, but as far as I know the only way to add custom code folding to the Eclipse Java editor. From your question I see that you are mostly a visual-studio user and as such not familiar with Eclipse plug-in architecture, but depending on your experience with general plug-in architectures, extending Eclipse is (in small scale) pretty straight forward.