How to configure PHP function comment headers by vscode

the editor 1.VS CODE is easy to use and fast to use. Many functions can be completed by installing plug-ins, but I can"t find the plug-ins for the configured PHP function comment headers, as shown in figure

.

at present, after pressing the / * + spacebar after writing the function, the default comment header is nothing:

/**
 * 
 */
function test($id = 1)
{
    return 1;
}

/** + :
/**
*
* @Description
* @param int $id
* @return int
* @example
* @author Lizhijian
* @since 2018/7/5 15:03
*/
function test($id = 1)
{
    return 1;
}

2. I found that there is very little information about the configuration comment headers of VS CODE on Baidu. Some of them use code snippets and try them, but there is no effect and no trigger

.

clipboard.png

clipboard.png

Doxygen Documentation GeneratorPHP

clipboard.png

but I still didn"t trigger

.

install the PHP DocBlocker extension, then open the settings and add parameters

"php-docblocker.extra": [
        "@Description",
        "@example",
        "@author Lizhijian",
        "@since"
    ]

Save, hit / * * automatic prompt on the function and enter will generate Doc, but this order does not seem to be adjusted and needs to be manually. In addition, custom variables do not seem to take effect in the automatically generated comment block. Manually tapping @ automatically prompts the generated comment line to be valid.


add @ since add time:

"php-docblocker.extra": [
    "@date $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE"
]
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-1b36ac7-2c026.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-1b36ac7-2c026.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?