按Enter键时,在Sublime中自动"继续"注释块?

jas*_*mko 6 javascript comments sublimetext2

我确信那里有一个答案,但由于这个问题和关键词的含糊不清,很难.

我想要的只是一个评论插件或在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
 */
Run Code Online (Sandbox Code Playgroud)

UPDATE/ANSWER

我发布这个用户后几分钟pst进来并重新解释我的问题实际上是有道理的.搜索后我找到了DocBlockr.效果很好,谢谢你们俩!

Dav*_*ton 12

从DocBlockr包开始.

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

/*
 * <-- Type and align that one, hit <RETURN>...
 * <-- This one will be inserted and aligned automatically.
Run Code Online (Sandbox Code Playgroud)

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

/**
 * <-- Inserted automatically.
Run Code Online (Sandbox Code Playgroud)

如果你正处于一个函数的开头,那么它也会为你提供JsDoc的东西.