Wikunia / brackets-FuncDocr

FuncDocr generates JS/PHPDoc annotations for your functions
101 stars 14 forks source link

/* triggers a JSDoc comment block instead of /** #79

Closed arctwelve closed 8 years ago

arctwelve commented 8 years ago

The extension uses /** + Enter to trigger the comment block at the beginning of a function.

That works, but it will also recognize /* + Enter (one asterisk). That prevents the user from adding general comments instead of JSDoc ones.

arctwelve commented 8 years ago

@Wikunia Wow, awesome. That was fast!

Wikunia commented 8 years ago

well and easy :D

arctwelve commented 8 years ago

Just thinking...maybe instead of /* + enter doing nothing, /* + enter created a general comment block. So /* + enter creates:

/*
 * [[Description]]
 */

with [[Description]] highlighted to edit. General comments would only have [[Description]] and the shortcut would work anywhere inside a js file (i.e., inside or outside a function).

The extension would now completely take care of all block comments: JSDoc and general.

Wikunia commented 8 years ago

There is an extension for general comments. https://github.com/peterflynn/reasonable-comments