phpstorm 方法名类名 作者日期 注释

phpstorm 设置方法名 函数名注释  新建页面作者日期信息注释

官方提供的文档地址:

  http://www.jetbrains.com/phpstorm/help/creating-php-documentation-comments.html#d745077e199

由于英文水平有限 自己总结了一下操作步骤:

  file-> setting-> FIle and Code Template-> Includes-> PHP Function Doc Comment 

参考设置:

/**
 * 
${PARAM_DOC}
#if (${TYPE_HINT} != "void") * @return ${TYPE_HINT}
#end
${THROWS_DOC}
 * @author ${USER}
 * @date ${YEAR}-${MONTH}-${DAY} ${TIME}
*/

效果:

原文地址:https://www.cnblogs.com/starfish29/p/12720023.html