简体   繁体   English

定制 Java 代码折叠 Eclipse Helios

[英]Custom Java Code Folding for Eclipse Helios

I spent a lot of time googling, now I'll try it here.我花了很多时间在谷歌上搜索,现在我会在这里尝试。 Some of you might know the "regions" available in Microsoft Visual Studio, which allow you to collaps an arbitrary part of your code to just a single line, more or less like你们中的一些人可能知道 Microsoft Visual Studio 中可用的“区域”,它允许您将代码的任意部分折叠成一行,或多或少像

// [start] The text which will appear instead of the collapsed part
...
A bunch of lines of code
...
// [end]

In my opinion this is a really fine way to comment code, but it doesn't seem to be available for Java and Eclipse.在我看来,这是一种非常好的注释代码的方式,但它似乎不适用于 Java 和 Eclipse。 However, there was a plugin for that ( click ) but it doesn't work with Eclipse Helios.但是,一个插件( 点击),但它不适用于 Eclipse Helios。

So here's my question: Do you know a way to achieve this kind of code folding in a current version of eclipse?所以这是我的问题:你知道在当前版本的 eclipse 中实现这种代码折叠的方法吗?

You can try this one - http://incubator.apache.org/isis/ide-support.html It claims to be working on Eclipse 3.5, so there is a chance it will work on 3.6/3.7 (you will have to try). You can try this one - http://incubator.apache.org/isis/ide-support.html It claims to be working on Eclipse 3.5, so there is a chance it will work on 3.6/3.7 (you will have to try )。 Hope that helps!希望有帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM