In the new class and other files, IntelliJ idea is able to automatically create a corresponding template, but such as the method in the class is required to manually comment, of course, there is a shortcut key "/**+enter", but the formation of the template does not have the author, time and other content you want to define, How do we create our own comment template, don't worry, listen to me slowly.
First, open IntelliJ idea's settings settings: and follow the steps below
The specific template text format is:
*
* @Description:
* @param: Params params
* @return: Returns returns
* @author:
* @Date: Date Date
*/
Finally apply the application, in the template's scope of use, enter/*MHS, press TAB to annotate, here MHS is the name of the template you just entered. The effect is shown below:
Create your own comment template live templates to this end, if this article is helpful for you to give a top bar, of course, welcome comments and suggestions.