How to set up pycharm to automatically generate author information
This article mainly introduces how to set up pycharm to automatically generate author information, the article is very detailed, has a certain reference value, interested friends must read it!
Set up the automatic generation of author information
1. File- > settings- > Editor- > file and code templates- > python script
Other variables #! / usr/bin/env python #-*-coding: utf-8-*-# @ Time: ${DATE} ${TIME} # @ Author: pretty boy # @ Site: ${SITE} # @ File: ${NAME} .py # @ Software: ${PRODUCT_NAME} set the template to automatically generate a preview of the author, time, version and other basic information
The following basic information is automatically generated each time a new code file is created
Realization process
Click: File → setting → CodeStyle → File and Code templates → Python script
Enter the following code:
#-*-coding: utf-8-*-# @ Time: ${DATE} ${TIME} # @ Author: Mala Crayfish # @ FileName: ${NAME} .py # @ Software: ${PRODUCT_NAME} # @ Blog
Finally, remember to click the OK below to confirm, save the settings, restart to open pycharm, and create a new code file to see the effect.
The above is all the contents of the article "how to set up pycharm to automatically generate author information". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!