PyCharm 自动添加文件头注释

PyCharm 自动添加文件头注释

  • 1. File and Code Templates
  • 2. Python File
  • References

1. File and Code Templates

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

Reformat according to style & Enable Live Templates

PyCharm 自动添加文件头注释_第1张图片

Created by ${USER} on ${DATE}
 

2. Python File

right click -> New -> Python File

添加注释 # ,采用如下格式:

# 
# Created by strong on 17-11-23
# 

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/

你可能感兴趣的:(PyCharm,PyCharm,自动添加文件头注释)