I always thought that I was very familiar with eclipse, but I recently read a book and found that I am still far away from using it. I don't know how to use many shortcut keys.
I will list them as follows. On the one hand, I will give my reference at ordinary times. On the other hand, I will remind you to quickly and efficiently use the eclipse tool for development.
1. Shortcut Keys for formattingWhen writing code, developers often need to write formatted Code to facilitate maintenance by others. The shortcut keys for formatting code are shown in the following table.
| Express key |
For use |
| Ctrl + Shift + U |
Appears in the file |
| Ctrl + H |
Open Search dialog box |
| Ctrl + G |
Workspace Declaration |
| Ctrl + Shift + G |
Reference in Workspace |
| Ctrl + Shift + F |
Format |
| Ctrl +/ |
Comment/cancel comment |
| Ctrl + Shift + M |
Add Import |
| Ctrl + Shift + O |
Organization Import |
| Ctrl + 1 |
Automatic Correction |
2. Shortcut Keys for debuggingWhen writing code, developers often need to debug the code. The shortcut keys for debugging code are shown in the following table.
| Express key |
For use |
| F7 |
Return in one step |
| F6 |
Skip in one step |
| F5 |
One-Step Jump |
| Ctrl + F5 |
Step-by-Step Jump-in selection |
| F11 |
Debugging last started |
| F8 |
Continue |
| Shift + F5 |
Use the filter for one-step execution |
| Ctrl + Shift + B |
Add/Remove breakpoints |
| Ctrl + D |
Display |
| Ctrl + F11 |
Last started |
| Ctrl + R |
Run to line |
| Ctrl + U |
Run |
3. Shortcut Keys for refactoringThe Eclipse shortcut key can also be used to refactor the code. The shortcut keys for refactoring code are shown in the following table.
| Express key |
For use |
| Alt + Shift + Z |
Cancel Reconstruction |
| Alt + Shift + M |
Extraction Method |
| Alt + Shift + L |
Extract local variables |
| Alt + Shift + I |
Inline |
| Alt + Shift + V |
Mobile |
| Alt + Shift + R |
Rename |
| Alt + Shift + Y |
Redo |