PyCharm 自动添加作者及时间

 

打开pycharm,快捷键ctrl + alt + s 打开模板设置自己所需内容

完整打开路径:file>settings>editor>code style>file and code templates>python script

 

#!/usr/bin/python
# -*- coding: UTF-8 -*-
# @date: ${DATE} ${TIME}
# @name: ${NAME}
# @author:vickey-wu

 

官网设置模板的链接:https://www.jetbrains.com/help/pycharm/2017.1/creating-and-editing-file-templates.html

 

posted @ 2017-05-10 23:51  随便了888  阅读(1035)  评论(0编辑  收藏  举报