Eclipse Common shortcut keys

Source: Internet
Author: User

The most common shortcut keys in eclipse

Friends who are familiar with eclipse must be very impressed with its shortcut keys. Many, but commonly used generally is about 10. According to the practice in the project, it is summarized as follows, a little help to some of the less familiar friends.

Ctrl + Shift + O: Import and manage Imports statements

Ctrl + Shift + T: Opens open Type find class file

Ctrl + Shift + F4: Close the window where you are opening

Ctrl + o:open declarations

Ctrl + E: Open editor (toggle window)

Ctrl +/: Note the bank

Alt + Shift + R: Rename

Alt + Shift + L: Extract local variables

Alt + Shift + M: Extraction method

F3:open Declaration

The following is the content added by netizens:

by sitinspring

Ctrl + D: Delete Bank

Ctrl + SHIFT + F: Shaping

by Gandi Feng

Ctrl + Alt +↓ (↑): Copy line down (UP)

Alt +↓ (↑): Move the bank down (UP)

Alt +. : Output Hints

Note: Personally think this shortcut is the most useful, (1) In the Java class, to output the main method, as long as the input main and then use this shortcut key to press ENTER, to output System.out.println (), you just enter SYSO and then use this shortcut to press ENTER Again, for example, if you want to overwrite the ToString () method of the parent class, you only need to enter to and then press ENTER with this shortcut; If you want to use a class that does not have an import (such as Calendar), you can simply enter the CA and use the shortcut key to select For example, if you want to generate a Get,set method for a field, you only need to enter get and use this shortcut to generate (default is public); (2) in the JSP page, you can use this prompt to enter a label (the tag attribute is indicated in the label). (3) This shortcut key is also available in XML.

by Gandi Feng

Ctrl + S: Save the file.

Other also have Ctrl + A, Z, X, C, V;shift +→;shift +←; a side-by-side here, easy to summarize the query.

By Month Bud

Alt+shift+j Adding a doc comment to a function

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Eclipse Common shortcut keys

Related Article

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.