IDEA comes with comment template is not very good, I am to the Internet to collect a lot of information about the production system is put together a more complete template for everyone to share, I am not a professional play blog, writing this article just to let everyone save.
Notes template set here using Eclipse format, following first comment posted Eclipse template, we will follow the format set:
Class Notes templates: a template method Notes:
a, first of all let's set the template class IDEA: (IDEA when you create a class to automatically add comments)
1、File–>settings–>Editor–>File and Code Templates–>Files
We select Class file (of course you have to set the interface can also choose Interface file)
(. 1) NAME: Set the name of the class, {NAME}, and the following: class name provided with the following NAME: class name is provided, and below the same in order to obtain {NAME}, to create a class name
(2) TODO: dos labeled, generally generated class or method need to add description
(3) USER, {USER}, USER, {DATE}, TIME: creating classes set by the user, the date and time of creation, IDEA these things built-in methods, there are other methods in the green frame labeling position, such as you want to add the project name, you can use {tIME}: create a class set by the user, date and time of creation, these things IDEA built-in methods, there are other ways in the green box marked position, for example, you want to add the project name you can use the tIME: set user-created class, date and time of creation, these things IDEA built-in methods, there are other ways in the green box marked position, for example, you want to add the project name, you can use {PROJECT_NAME}
(4) 1.0: set the version number, the newly created classes are generally 1.0 version, here to write on it dead
2, renderings show
Reprinted from ( https://blog.csdn.net/sihai12345/article/details/84843668 )