title: The 10 most commonly used shortcuts in Eclipse
date: 2013-07-08 09:11:22
tags:#
Friends who are familiar with Eclipse must have a strong impression of its shortcuts. There are many, but usually only about 10 are commonly used. Based on practical experience in projects, I have summarized them below, which can be a little help for friends who are not very familiar with them.
Ctrl + Shift + O: Import and manage import statements
Ctrl + Shift + T: Open Type and search for class files
Ctrl + Shift + F4: Close the currently open window
Ctrl + O: Open declarations
Ctrl + E: Open editor (switch windows)
Ctrl + /: Comment out the current line
Alt + Shift + R: Rename
Alt + Shift + L: Extract local variable
Alt + Shift + M: Extract method
F3: Open Declaration
Ctrl + D: Delete current line
Ctrl + SHIFT + F: Format
Ctrl + Alt + ↓(↑): Copy current line downwards (upwards)
Alt + ↓(↑): Move current line downwards (upwards)
Alt + .: Output suggestions
Ctrl + S: Save file
There are also Ctrl + A, Z, X, C, V;
Shift + →; Shift + ←; are also listed here for easy reference and summarization.
Alt + Shift + J: Add doc comments to function
Ctrl + Shift + O: Import and manage import statements#
Used with the FormatOnSave plugin, it is no longer used as it automatically imports when saving.
Ctrl + Shift + T: Open Type and search for class files#
Ctrl + Shift + F4: Close the currently open window#
Used Ctrl + W
Ctrl + O: Open declarations#
Ctrl + E: Open editor (switch windows)#
Ctrl + /: Comment out the current line#
Alt + Shift + R: Rename#
Alt + Shift + L: Extract local variable#
Alt + Shift + M: Extract method#
F3: Open Declaration#
Used Ctrl + Mouse
Alt + Shift + X: A menu will pop up
Via The 10 most commonly used shortcuts in Eclipse - Sterning - BlogJava.