6

我敢肯定那里有答案,但由于这个问题和关键字的模糊性,这很困难。

我想要的只是一个评论插件或在 Eclipse 中模仿 Java 的答案,其中:

/* 
 * This is a description of a function in Javascript
 * When I press return a line like this
 *
 * should appear (above) and allow me to continue the comment block
 * and be surrounded by the following
 */

更新/回答

几分钟后,我发布了这个用户 pst 进来并改写了我的问题以使其真正有意义。搜索后,我找到了 DocBlockr。效果很好,谢谢两位!

4

1 回答 1

12

从 DocBlockr 包开始。

如果您输入并对齐第一个*,它将插入以下起始*s。

/*
 * <-- Type and align that one, hit <RETURN>...
 * <-- This one will be inserted and aligned automatically.

如果您插入双星号,它将插入前导*s 而没有提示:

/**
 * <-- Inserted automatically.

如果您处于函数的开头,它也会为您放入 JsDoc 内容。

于 2012-11-27T20:10:23.290 回答