File->settings->Editor->File andCode Templates->Python Script


#!/usr/bin/env python
# encoding: utf-8
#set( $SITE = "http://madsstudy.blog.51cto.com/" )

"""
@version: v1.0
@author: madongsheng
@license: Apache Licence
@contact: xxxx@qq.com
@site: ${SITE}
@software: ${PRODUCT_NAME}
@file: ${NAME}.py
@time: ${DATE} ${TIME}
"""

def func():
    pass

class Main():
    def __init__(self):
        pass

if __name__ == '__main__':
    pass