Multi-line comments in JavaScript should preserve indentation and commenting prefix


#1

Hey, it would be great if multi-line JS & CSS comments preserved the indentation and also put the ‘*’ prefix in for you. As an added bonus it would be cool if they could detect the start of a multi-line comment and automatically close it for you.

(NB: I’m using the pipe character to represent the cursor)
Examples, at the moment, after hitting return at the start of a multi-line comment I get:

    /**
   |

What I want is:

/**
 * |

Or even better:

/**
 * |
 */

thanks!


#2

Hey!

I also wanted this for JavaScript so I opened a pull request via #38 however I am not quite sure about multi line comments in CSS as there are so many variants that people can use.