Today I learned some common Java shortcut keys, made notes for myself, and shared them with friends who need them:
1. Content prompt: Alt +/such as sysout +Alt +/The output statement is displayed.
2. Quick Fix: Ctrl + 1 whenCodeWhen an error is reported, press
CTRL + 1, It will prompt you how to handle the error,
Or press the mouse to show the red X of the row.
3. format the code block: Ctrl + Shift + F when the code is messy, pressCTRL + Shift + FAutomatic
Arranged neatly for you.
4. Notes:CTRL + Shift +/press the selected code blockCTRL + Shift +/.
5. view the method Description: F2. Press F2 as the single mouse mode.
6. view the method inheritance relationship:CTRL + T.
7. Reset the perspective: reset perspectiv of the eclipse menu window. Unfamiliar with this software
You can try it out. Restore your initialization attempt.
8. Copy the current row to the next row:CTRL + ALT + direction key.
Copy the current row to the previous row: CTRL + ALT + direction key.
Position of the current row and the following row: Alt + direction key.
The current row and the previous row are switched ON: Alt + direction keys.
9. view more shortcut keys: Ctrl + Shift + L (letter ).