The correct way for idea to generate class annotations and method annotations

System: Mac OS

idea version: 2017.3.1

----------------

Generate class annotations

  1. Open Preferences
  2. Editor -> File and Code Templates -> Files -> Class 

Class annotation template:

/**
* @program: ${PROJECT_NAME}
*
* @description: ${description}
*
* @author: SKH
*
* @create: ${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}
**/

This method will pop up the box twice every time you create a class, and enter the description content for the second time.

=========================== Dividing line ======================= ====

Generate method annotations

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324594762&siteId=291194637