IntelliJ Idea's creation of its own annotation template live Templates

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.