Automatically "continue" block comments in Sublime when hit enter?

I am sure there is an answer, but due to the ambiguity of this question and keywords it is difficult.

All I want is a comment plugin or response to simulate Java in Eclipse, where:

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

A few minutes after I posted this user, pst came in and rephrased my question in order to actually make sense. After searching, I found DocBlockr. Works great, thank you both!

+6
source share
1 answer

Start with the DocBlockr package.

If you enter and align the first * , it inserts the following start * s.

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

If you enter a double asterisk, it will enter a leading * without a hint:

 /** * <-- Inserted automatically. 

If you are at the beginning of the function, it will also add JsDoc for you.

+12
source

All Articles