7 Replies Last post: Jul 12, 2013 1:58 PM by Elena Pogorelova  
Mathieu Rivest Newbie 35 posts since
Jan 28, 2013
Currently Being Moderated

Jun 30, 2013 1:52 AM

Fix Doc Comments Eap 7

Hello. Has the 'Fix Doc Comments' to update JSDoc-style comments been removed or renamed in WebStorm 7 EAP? I can't seem to find it.

 

Regards,

Mathieu.

Elena Pogorelova Apprentice 1,050 posts since
Oct 5, 2011
Currently Being Moderated
Jul 1, 2013 4:41 PM in response to: Mathieu Rivest
Re: Fix Doc Comments Eap 7

Hi Mathieu,

 

it's called 'Update JSDoc comment'. Seems to be there - see the screenshot

Can you provide the code snippet where it doesn't appear for you?

 

 

Best regards,

Lena

Attachments:
Elena Pogorelova Apprentice 1,050 posts since
Oct 5, 2011
Currently Being Moderated
Jul 11, 2013 3:00 PM in response to: Mathieu Rivest
Re: Fix Doc Comments Eap 7

Make sure that 'JSDoc comment matches function signature' inspection (Settings/Inspections/General) is enabled

Note that the quickfix will only be proposed if you have JSDoc tags that don't match you function signature. So

 

/**
* some comment
*/
var a = function(ento){

 

};

 

won't cause any violations (and thus no quickfixes will appear). But it will be shown for

 

/**
* some comment
* @param x
*/
var a = function(ento){

 

};

 

If you just need the JSDoc annotations being auto-generated for your function, enter /** before it and hit return

 

 

Best regards,

Lena

Elena Pogorelova Apprentice 1,050 posts since
Oct 5, 2011
Currently Being Moderated
Jul 11, 2013 5:49 PM in response to: Mathieu Rivest
Re: Fix Doc Comments Eap 7

The action you are looking for is still available - Settings/Keymap/Other/Fix doc comment

Elena Pogorelova Apprentice 1,050 posts since
Oct 5, 2011
Currently Being Moderated
Jul 12, 2013 1:58 PM in response to: Mathieu Rivest
Re: Fix Doc Comments Eap 7

The code is formatted according to style settings on hitting ctrl+alt+L (Code | Reformat code)

 

Best regards,

Lena

More Like This

  • Retrieving data ...