• How to set: File->Settings->Editor ->File and Code Templates->Include->File Header

  • Add the following code:
/** * Created by ${USER} on ${DATE} ${TIME} */  
Copy the code

or

/ * * *@author  xdr630
 * @date  ${DATE} ${TIME}
 * @version1.0 * /
Copy the code
  • When creating a new class, you can also change the username variable on the template to a fixed value