我确信那里有答案,但由于这个问题和关键字的含糊不清,所以很难回答。
我想要的只是一个评论插件或在 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。效果很好,谢谢你们!
最佳答案
从 DocBlockr 包开始。
如果您输入并对齐第一个 *
,它将插入以下起始 *
。
/*
* <-- Type and align that one, hit <RETURN>...
* <-- This one will be inserted and aligned automatically.
如果您插入一个双星号,它将插入前导 *
而没有提示:
/**
* <-- Inserted automatically.
如果您正处于函数的开头,它也会为您放入 JsDoc 内容。
关于javascript - 按 enter 时自动 "continue"Sublime 中的注释 block ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13592091/