phpstorm 设置方法名注释

官方文档地址:

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

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

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

phpstorm 设置方法名注释

参考设置:

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

效果:

phpstorm 设置方法名注释

相关推荐