Author 注釋 簽名如下:
/**
* @author 稚梟天卓 E-mail:zhxiaotianzhuo@163.com
* @version 創建時間:2016-6-20 下午04:58:52
*/
Eclipse 自動生成 Author 注釋 簽名
window-> preference->Java-> code styple-> code template 當你選擇到這部的時候就會看見右側有一個框顯示出code這個選項,你點開這個選項,點一下他下面的New Java files 然后你點edit按鈕,把他的內容換成你的就可以了:(例如)
${filecomment}
${package_declaration}
/**
* @author faunjoe E-mail:xxx@163.com
* @version 創建時間:${date} ${time}
*/
${typecomment}
${type_declaration}
最后 點 apply ----> OK 成功。。
另外補充說明一點,在點了 edit 彈出來的編輯窗口的左下腳有一個 “Insert Variable” 按鈕,點擊那里就會顯示當前模板中可以引用變量,就不會像我一樣到處找變量的定義了。
IntelliJ IDEA 自動生成 Author 注釋 簽名
1、打開 File --> Setting
2、找到 Editor --> File and Code Templates
3、找到 Includes
4、修改掉 ${User}為自定義用戶名即可,可以改為
/**
* @author faunjoe E-mail:xxx@163.com
* @version 創建時間:${DATE} ${TIME}
*/