以下是设置phpstorm注释的步骤:
1、打开设置setting-》Editor-》FIle and Code Template
2、点击includes
3、点击PHP Function Doc Comment进行新增或编辑(如需设置class或文件的注释,点击编辑includes下的相应选项即可)
举例如下:
/**
* Notes:
* User: ${USER}
* Date: ${DATE}
* Time: ${TIME}
${PARAM_DOC}
#if (${TYPE_HINT} != "void") * @return ${TYPE_HINT}
#end
${THROWS_DOC}
*/
4、点击Apply OK