A detailed explanation of eclipse usage techniques

Source: Internet
Author: User

Hot Key article:

Template:alt +

Modified by: Window->preference->workbench->keys->command->edit->content Assist.

Personal habits: shift+space (blank).

Simple description: Edit the program code, hit Sysout +template startup Key, will automatically appear: System.out.println ();

Set Template format: Window-> Preferences->java-> Editor-> template.

Automatic typesetting of program code: CTRL+SHIFT+F

Modified by: Window-> preferences set-> table-> button-> program code-> format.

Personal habits: alt+z

Automatic Typesetting Settings: Window-> preferences set->java-> program code format production program.

The style page-> will be inserted in the tab (not the SPACEBAR), and the option is unchecked, with the following number of spaces filled in 4, which is indented with space 4 when automatically choreographed.

Quick Execute Program: Ctrl + F11

Personal habits: alt+x

Modifications: Window-> preferences set-> Workbench-> button-> perform the start job before-> start.

Simple description: The first time you execute, it will ask you to execute the mode, set up, and then just press this hotkey, it will quickly execute.

Categories required for automatic import: Ctrl+shift+o

Simple description:

Suppose we do not import any categories when we enter in the program:

BufferedReader buf =new BufferedReader (New InputStreamReader (system.in));

At this point eclipse warns that there is no import category, when we just press Ctrl+shift+o and it automatically helps us import categories.

To view the original code using categories: CTRL + Click the left mouse button

Simple description: You can see the original code for the category you are using.

Annotate the selected text: ctrl+/

Easy Description: Debug is convenient.

Modify: Window-> preferences-> table-> button-> program code-> annotation

Uncomment the selected text: Ctrl + Simple description: Ibid.

Modified by: Window-> preferences-> table-> key-> program code-> cancel annotation

Scene Switch: Ctrl+f8

Personal habits: alt+s

Modifications: Window-> preferences-> table-> button-> window-> the next scene.

Simple description: Can facilitate our fast switch editing, error-removal, and so on view.

3.0 Li Ctrl+alt+h can see the method that invokes the current member, and can go up one layer at a level.

Ctrl+o can be quickly cut to other methods.

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.