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: