The signature of the author’s comments is as follows:
/**
* @ author E-mail:[email protected]
* @ version created on June 20, 2016 at 04:58:52 PM*/
Eclipse automatically generates the author annotation signature
file
Window – & gt; preference – & gt; Java – & gt; code style – & gt; code template when you select this movie, you will see a box on the right showing the option of code. You can click this option, click New java files under it, and then you can click Edit button to change its content to yours: (for example)
${filecomment}
${package_ Declaration}
/ *
* @ author E-mail:[email protected]
* @ version creation time: ${date} ${time}
* /
${aspect}
${type}_ declaration}
Finally, apply — & gt; OK..
In addition, I need to add that there is a “insert variable” button in the bottom left foot of the edit window that pops up after I click Edit. When I click it, it will display the variables that can be referenced in the current template, so I won’t look for the definition of variables everywhere like I do.
IntelliJ idea ﹣ automatically generates author annotation signature
1. Open file — & gt; setting
2. Find editor — & gt; file and code templates
3. Find includes
4. Change ${user} to a user-defined user name
/**
* created by name on ${date}.
*/
Read More:
- IntelliJ idea automatically generates serialVersionUID
- Error pathvariable annotation was empty on param 0 when migrating idea to eclipse
- The solution of using Autowired annotation to report errors in IntelliJ idea
- Solution to the error of @ resource annotation in eclipse spring
- Eclipse reset annotation shortcuts
- IntelliJ idea debugging Java 8 stream
- How to generate UML Diagrams from Java code in Eclipse
- @How to solve eclipse error after setter and @ getter (@ data) annotation
- Solution of idea using @ Autowired annotation to report errors
- @Solution to get / set error in eclipse after using data annotation
- [error] error handling of IntelliJ idea
- Git uploads local IntelliJ idea project to GitHub
- Perfect solution for IntelliJ idea error “CreateProcess error = 2, system cannot find the specified file”
- IntelliJ idea sets the default working directory
- How can IntelliJ idea completely delete a project
- Idea2021 reports an error. Default operand size is 64 sets the startup task to automatically add the registry
- The solution of notes floating red error in IntelliJ idea
- Split screen display method in IntelliJ idea
- After eclipse eclipse eclipse imports the correct project, an error is reported in XML and other files
- How to make eclipse after the program is modified, click run to automatically save it.