phpstorm 自定义类模版
Editor/ File and Code Templates / includes / PHP File Header
添加
/**
* Created by PhpStorm.
* User: Huang
* Date: ${DATE}
* Time: ${TIME}
*/
Editor/ File and Code Templates / File / PHP Class
<?php declare(strict_types=1);
#parse("PHP File Header.php")
#if (${NAMESPACE})
namespace ${NAMESPACE};
#end
class ${NAME} {
}