Common Eclipse skills and Eclipse skills

Source: Internet
Author: User

Common Eclipse skills and Eclipse skills

IDE is required for project development using Java, and Eclipse is a very useful tool. I have been learning Java for some time by watching the video of Chuanzhi. So I would like to sum up some common shortcut keys and tips in using Eclipse. In the process of using tools for development, if you are proficient in some common shortcut keys and skills, you will certainly get twice the result with half the effort.

 

I. program debugging

F5: Step Into: Enter the method body

F6: Step Over (skip in one Step): commonly known as single-Step execution

F7: Step Return (Return in one Step): Return from the method that jumps in

 

Resume: The execution jumps to the next breakpoint. If there is no next breakpoint, the entire program is completed.

(This is a very useful skill. If several lines of code need to be skipped during the debugging process, Resume can definitely save you from the endless F6 .)

 

Drop To Frame: Jump To the first line of the current method.

(If you are not careful during debugging, skip a statement. No need to restart debugging !!! You only need To click Drop To Frame To send you back To the first line of the method .)

 

Watch: Observe the value of a variable or expression

(In the debugging process, you often need to observe the values of some variables and expressions. Right-click Watch to easily meet your needs .)

 

Note: After breakpoint debugging is complete, we must clear all breakpoints in the breakpoints view and disable jvm. Otherwise, the computer may be stuck inexplicably.

 

2. Common shortcut keys for Eclipse (using common shortcut keys makes your development easier .)

Content prompt (Content Assist): Alt +/

Quick Fix: Ctrl + 1

Export package: Ctrl + Shift + o

Format the code block: Ctrl + Shift + F

Forward and backward: Alt + left and right direction keys

Add Note: Ctrl + Shift +/

Note: Ctrl + Shift + \

View method Description: F2

Reset Perspective: window --> Reset Perspective

Change to uppercase: Ctrl + Shift + X

Change to lower case: Ctrl + Shift + Y

Copy row: Ctrl + Alt + down key

Order of changing statements: Alt + up/down keys

View the class inheritance relationship: Ctrl + T

View Source Code: Ctrl + move the cursor (Ctrl + Shift + T)

View All Shortcut Keys: Ctrl + Shift + L

 

3. How do I modify the shortcut key?

Window ---> Preferences, enter keys in the search box, and then you can configure the Eclipse shortcut keys based on your Preferences.


In Eclipse, how can I quickly view where a method is used?

Select the method name you want to view, ctrl + shift + G to view all the places that have called this method. You can view it in the Search view.
You can also press Ctrl + H to retrieve the full text.

Eclipse tips

Alt + '/' combination key

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.