2012-11-27 56 views
6

我确定有一个答案,但由于这个问题和关键词的含糊不清,按下Enter键后自动“继续”Sublime中的注释块?

我要的是一个评论插件或回答模仿的Java在Eclipse中:

几分钟后

/* 
* 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 
*/ 

UPDATE /答案我张贴了这个用户的PST走了进来,改写我的问题实际上是有道理的。搜索后,我找到了DocBlockr。非常好,谢谢你们两位!

回答

12

从DocBlockr包开始。

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

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

如果插入双星号,它将插入领先*•不用的提示:

/** 
* <-- Inserted automatically. 

如果你在一个函数的开始,它会放JsDoc东西在对你也是如此。