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} */
效果: