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