File->settings->Editor->File and Code Templates->Python Script
添加以下代码:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : Aries
# @Site : ${SITE}
# @File : ${NAME}.py
# @Software: ${PRODUCT_NAME}
https://segmentfault.com/q/1010000004878716
Pycharm在创建py文件时,如何自动添加文件头注释(类似于钩子特性)?
原文:http://www.cnblogs.com/hugo07/p/5903885.html