Pycharm在创建py文件时,如何自动添加文件头注释(类似于钩子特性)?
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}