tgandrews / atom-easy-jsdoc

JSDoc hot key for atom editor.
Other
41 stars 11 forks source link

Adding JSDoc with the shortcut while cursor is on the "function" line #79

Open KonradHoeffner opened 6 years ago

KonradHoeffner commented 6 years ago

If I have a function like this:

function foo()
{
...
}

And press CTRL+SHIFT+J, while the cursor is on the "function" line, atom-easy-jsdoc generates:

function foo()
/**
 * 
 */ 

{
...
}

But I expect:

/**
 * foo - description
 *
 * @return {type}  description
 */
function foo()
{
...
}

But I get this behavior only if I place the cursor one line above the line with "function" in it.