Use the idea's Live Template to implement the automatic prompt code feature

Source: Internet
Author: User
Tags custom name

Live template: In Chinese it should be called hot load template. Its principle is to configure some commonly used code letter abbreviations, in the input shorthand can appear your prefabricated template content, so that the development efficiency greatly improved. method One: Create a new Live Template Step1.

Click file–setting

Step2.

Select Live Template, click the + sign on the right, select Template Group

step3.

Enter a custom name, then click OK.

Step4.

Select the Template Group you just created, and click the + sign on the right again to select Live template

step5.

Fill in abbreviations, descriptions, template content, effective file scope, etc.

When you configure a template, the variable name appears in the form of a character surrounded by $ $, and the method that is called first appears as a variable, and after you finish writing the template information, edit the variable (edit variables).

$END $ is a special pre-defined variable that represents the position at which the cursor was last jumped.

step6.

Click Edit variables on the right (this can only be clicked and set when using predefined functions)

STEP7.

Click Apply, OK, finish. method Two: Using the idea's own Live Template PSVM generate the Main method Fori generate a For loop sout generate System.out.println (); ... Method Three: Modify the idea's own Live Template

To change PSVM to main and sout to Syso as an example:

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.