码迷,mamicode.com
首页 > 其他好文 > 详细

pycharm在创建py文件时,自动添加文件头注释

时间:2017-11-04 16:23:49      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:arm   php   bin   auth   templates   date   添加   utf-8   pytho   

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文件时,自动添加文件头注释

标签:arm   php   bin   auth   templates   date   添加   utf-8   pytho   

原文地址:http://www.cnblogs.com/xu-xiaofeng/p/7783252.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!