Close all windows
Ctrl + Shift + W Close all open editing windows
Renaming
Alt + Shift + R file or variable rename (select the file or variable and press the shortcut key at the same time)
Quick Lead Package
Ctrl + Shift + O automatically import the required packages and delete the extra import statements
Code formatting
Ctrl + Shift + F code formatting
Delete, copy of line of code
Ctrl + D Deletes the cursor in the row
Ctrl + Alt +↑ copy up and paste the cursor in the row
File or Method lookup
Ctrl + Shift + R opens the Resources window (Quick Find files such as. java,. xml files)
Ctrl + O Quickly find methods in the current class
Find the same tag
Ctrl + K Looking for the next same tag
Ctrl + Shift + K looking for the same tag as before
Uppercase and lowercase conversions
Ctrl + Shift + X selection all converted to uppercase
Ctrl + Shift + Y selection convert all to uppercase
File Save
Ctrl + S Saves the current file
Ctrl + Shift + S saves all unsaved files
Description: The red-labeled shortcuts above are almost always used to write code using Eclipse. Skilled use of shortcut keys helps improve the speed and efficiency of code writing.
Eclipse shortcut keys