atom-easy-jsdoc icon indicating copy to clipboard operation
atom-easy-jsdoc copied to clipboard

Nested docs

Open E88 opened this issue 8 years ago • 4 comments

Now nested docs are created: Pressing Shift-Ctrl-J over: function MyFunction(param1, param2) { results in:

/**
 * MyFunction - description
 /** 
  *  
  /**  
   *   
   */   

  */  

 *  
 * @param  {type} param1 description 
 * @param  {type} param2 description 
 * @return {type}        description 
 */ 

E88 avatar Jun 09 '16 07:06 E88

What were you expecting it when pressing it a second time? This is a genuine question.

tgandrews avatar Jun 11 '16 08:06 tgandrews

I am experiencing the same thing. I have an existing function, and move the cursor to right before it and hit ctrl+shift+d and get nested jsdocs

kellyrmilligan avatar Sep 20 '16 13:09 kellyrmilligan

So if I have a cursor at 1 and you press the shortcut you get a nested doc?

1 
2 /**
3  * MyFunction - description
4  *
5  * @return {type} description
6  */

tgandrews avatar Sep 23 '16 09:09 tgandrews

+1 I see the same thing, but I don't know what I expected. Seems like a silly thing to try to do, unless you're an Xzibit meme from almost a decade ago.

wabudd1 avatar Dec 28 '16 15:12 wabudd1