1. 程式人生 > >Pycharm在創建py文件時,如何自動添加文件頭註釋(類似於鉤子特性)?

Pycharm在創建py文件時,如何自動添加文件頭註釋(類似於鉤子特性)?

pyc pycha logs software product odi rdo pytho editor

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文件時,如何自動添加文件頭註釋(類似於鉤子特性)?