java configuration template in the idea in class comments

1, automatically generated when you create a class

/**
 * ${NAME}:
 *
 * @author: Jie Zhang
 * @date: ${DATE} ${TIME}
 */

2, shortcut key generation

2.1, click the + option 2, add a template group, such as: sdadsadf

2.2, select the template group, click the + sign, select 1. Create a template

  • Step 1: Create Shortcuts
  • Step 2: Create shortcuts to explain
  • Step 3: Create shortcut keys corresponding to the comment template
  • Step Four: edit template parameters, such as NAME, DATE, TIME
  • Step Five: Choose a template trigger, such as Enter (Enter shortcut / * (click Enter)
  • Step Six: Select the template scope, click define, select the scope, here select Everywhere -> Java

third step:

/**
 * $NAME$:
 * 
 * @author: Jie Zhang
 * @date: $DATE$ $TIME$
 */

the fourth step:

Guess you like

Origin www.cnblogs.com/pascall/p/12014874.html