1. 程式人生 > >pycharm在創建py文件時,自動添加文件頭註釋

pycharm在創建py文件時,自動添加文件頭註釋

edit setting auth file color code pycharm nbsp 創建

File -> settings -> Editor-> File and Code Templates -> Python Script

添加內容:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
    """
    Time     : ${DATE} ${TIME}
    Author   : x
    File       : ${NAME}.py
    Software: ${PRODUCT_NAME}
    """

pycharm在創建py文件時,自動添加文件頭註釋