IDEA shortcut method and custom methods

 

1. letter combinations corresponding method to associate

· Ps think public static methods and members

• Input psvm think the main method

• Input psf to associate with a public static final, etc.

 

· Pc Lenovo to clone and hashcode (ph can)

 

 

 · Pe associate equals method

 

• Input sou think

Monogram fixed structure 2. Legend

· Generate input for the for loop

 

· Input loop for i fori generated

· Fore generate an enhanced for loop

· Digital .for generated for 100 cycles

100.fori

 

100.forr

 

3. Custom Templates

Click setting, Editor, find Live Templates, as shown:

Here you can see some of their own system already has a template, click on the upper right side of the +
second option, to establish their own set of templates, such as java, enter your own template group name, click OK, and then point the group just created the template, again click the + sign, choose the first and start creating your own templates.

For example, my definition of main methods:

Click Define, select the java.

 

Guess you like

Origin www.cnblogs.com/wqbin/p/11241066.html