phpstorm修改php文件头模板

phpstorm设置新建php文件时的头文件,一个帅气的头文件是不是让你码字的心情都更好了呢

phpstorm修改php文件头模板_第1张图片
20170712149985488177380.png

Editor/ File and Code Templates / includes / PHP File Header

phpstorm修改php文件头模板_第2张图片
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 = "[email protected]" )

然后就可以在模板中使用${MAIL}变量了

你可能感兴趣的:(phpstorm修改php文件头模板)