Close all windows
Ctrl + Shift + W Close all open edit windows
Renaming
Alt + Shift + R file or variable rename (first select file or variable and press shortcut key)
Quick-Draw Package
Ctrl + Shift + O automatically import the required packages and remove the redundant import statements
Code formatting
Ctrl + Shift + F code formatting
Deletion, replication of lines of code
Ctrl + D Deletes the cursor in the row
Ctrl + Alt +↑ copy up and paste cursor
File or Method lookup
Ctrl + Shift + R Open the Resource window (find files quickly, 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 look for the previous same tag
Case conversion
Ctrl + Shift + X selection all converted to uppercase
Ctrl + Shift + Y selection all to uppercase
File Save
Ctrl + S To save the current file
Ctrl + Shift + S to save all unsaved files
Description: The red-flagged shortcuts above are used almost every time you write code with eclipse. Skilled use of shortcut keys can help improve the speed and efficiency of code writing.