phpstorm設置新建php文件時的頭文件,一個帥氣的頭文件是不是讓你碼字的心情都更好了呢
20170712149985488177380.png
Editor/ File and Code Templates / includes / PHP File Header
20170621149803412611540.png
可以在模板中使用一下變量:
- ${FILE_NAME}:current file name
- ${USER}:current user system login name
- ${DATE}:current system date
- ${TIME}:current system time
- ${YEAR}:current year
- ${MONTH}:current month
- ${DAY}:current day of the month
- ${HOUR}:current hour
- ${MINUTE}:current minute
- ${PRODUCT_NAME}:current IDE name
- ${PROJECT_NAME}:current project name
你也可以自定義變量
#set( $MAIL = "xxx@test.com" )
然后就可以在模板中使用${MAIL}變量了