如何在 Eclipse IDE 的方法块内折叠注释块的代码

How do I fold code for comment blocks inside method blocks in the Eclipse IDE

如何在要折叠的方法块内折叠注释块(轮廓),就像方法和区域等一样?

sample_method_or_Class()
{
 /* I'd like to fold this
  * comment block
  */
}
/* The same way I can fold this one
 * outside the code block.
 */

Eclipse 是否支持像 Visual Studio 那样的功能(How do I fold code for comment blocks inside method blocks?)?

不幸的是,Eclipse 中没有这样的支持。不过有 a request for this,据报道 2008 年只有 10 票,所以我预计它不会很快实施。

可以找到名为 Coffee Bytes 的 Eclipse 折叠插件,但大多数链接已损坏。看起来最新的 Eclipse 版本不受支持,该项目看起来已停止。

更新:

howlger in the comment below, EclipseFolding 所示,插件运行良好。我现在已经对其进行了测试,并使用其更新站点通过 Help / Install new software... / Add... 安装了它:

在 Eclipse 重新启动后,我得到了小红方块,表示来自问题的两种评论场景的折叠能力: