Pycharm在创建py文件时,如何自动添加文件头注释

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}

posted @ 2018-07-04 11:00  leochan007  阅读(95)  评论(0编辑  收藏  举报