Automatically insert JSDoc

Topics: General
Jul 16, 2013 at 11:55 AM
Hi,

I have a question regarding the Visual Studio plugin. Would it be possible to add a some kind of functionality that automatically prepends a function with it's JSDoc. I have this function for example:
static rectangle(x: number, y: number, width: number, height: number): Path {
    ...
}
It would be nice if I could right click on the function name and click on an item in the context menu ("Insert JSDoc"). The following comment block would be generated:
/**
* 
* @param x 
* @param y 
* @param width 
* @param height 
*/
static rectangle(x: number, y: number, width: number, height: number): Path {
    ...
}
I have a lot of functions to document. This feature would save me a lot of unnecessary typing.
Jul 16, 2013 at 4:10 PM
Use WebStorm. It can do this automatically and will save you a lot of time. For some reason VS cannot.
Jul 16, 2013 at 5:58 PM
That's why I am asking whether it could be added. I'm not searching for alternative IDEs.
Jul 16, 2013 at 6:50 PM
It's been requested before in the forum. A number of times in fact.