類注釋
1 、首先打開菜單File->Settings打開設置對話框,在Editor->File and Code Templates的右側選項卡Files中找到Class,如下圖所示:
在類的代碼模版中public class上有一句#parse(“File Header.java”),因此我們只要在File Header.java中設置自己的模版
2、在Editor->File and Code Templates的右側選項卡includes中找到File Header,如下圖所示:
我們在Includes下找到File Header文件,編輯模版內容如下:
/**
*@program: ${PROJECT_NAME}
*@description: ${description}
*@author: xxx
*@create: ${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}
*/
3.點擊Apply應用模版,點擊OK關閉設置完成