Webstorm / * * enter method notes are often invalid

for example, the following method

test(value) {
    return false
}

enter / * * enter above test, and comments will be generated automatically, as follows

/**
* @params value
* @return {boolean}
*/
test(value) {
    return false
}

but sometimes, if you hit enter / * *, you will find that there is no way to comment, just wrap the line, as follows:

/**
*
test(value) {
    return false
}

Why is it impossible to generate comments sometimes? did you press any keys?

Apr.05,2021

has never encountered a situation where / * * does not work. It is possible that your file type is not correct, for example, it is not .js ?

an alternative is to use Find Action :

clipboard.png

JSDoc style comments cmd + shift + a fix doc comment fix

clipboard.png


ctrl+/,?


I also encountered this situation, did the landlord solve


ctrl+/ comments / / such ah


your code typing habits need to be improved, you select the shortcut key ctrl+/ to finish. It's much better than counting it yourself and typing it back. The most important thing is that you can also annotate the code you need to comment with +-put it away and annotate it. Maybe you don't even know that.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34eb9-2bf7e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34eb9-2bf7e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?