Idea common settings (continuous update) and idea continuous update

Source: Internet
Author: User

Idea common settings (continuous update) and idea continuous update

1. Comment the Template

Find live Templates in Setting

(1) create a Templates Group

(2) create a Live Template under the Templates Group

2. Common built-in templates

Java:

Itar --> General for loop (I ++)

Ritar --> General for loop (I --)

Iter --> foreach

Sout --> System. out. println ();

Serr --> System. err. println ()

Fori --> common for Loop

FN --> if (xxx = null ){}

Inn --> if (xxx! = Null ){}

Lazy --> if (xxx = null) {xxx = new XXX ();}

Psvm --> main method

SQL:

Ins --> insert into () values ();

3. Common shortcut keys

Select Eclipse shortcut keys

Alt + Enter --> code prompt

Alt + Insert --> Generate setter and getter Methods

Alt + Shift + R --> Search for Class

Alt + Shift + Z --> try-catch

Ctrl + G --> View method callers

Ctrl + H --> global search

Alt + left and right arrows --> jump to the previous or next position

Shift double-click --> idea special global search

Alt + Shift + R --> rename

 

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.