Record the shortcut keys you use most often in eclipse:
In fact, on-line summary of more is that they record their usual most immediate benefit of some of the shortcut keys.
1, shift+ alt+z (just learned):
Condition: Select a section of code
The right-click menu pops up and you can enjoy the convenience of shortcut keys.
2. ALT + Direction key
ALT + up and DOWN ARROW keys: Moves the line of the cursor.
CTRL + AlT + up and DOWN ARROW keys: Copy the line where the cursor is located.
ALT + LEFT and RIGHT ARROW keys: Returns where the last cursor was.
is the shortcut key for these two small icons in eclipse.
You will be able to understand the convenience of this shortcut when you have a few buttons that you normally use.
3. Alt+shift+r: Renaming
Rename the variable or direction.
Condition: Select a variable name or method name.
4, Alt+shift+m: Extraction method
Select a piece of code and extract it as a method. The code block can be cleverly selected to automatically generate the method with parameters.
How convenient AH.
5. Alt+shift+l: Extracting variables
And extraction methods are similar.
6, Shift+enter and Ctrl+shift+enter
Shift+enter: Inserts a blank line below the line where the cursor is located.
Ctrl+shift+enter: On the contrary.
7, Ctrl + 1
First write a method name, for example: int i = Method ("string");
If this method does not, the method is automatically generated with ctrl+1: The return type of the int type is automatically generated, and a string parameter.
How convenient AH.
8, Ctrl+k
Jump directly to the next occurrence, and vice versa: ctrl+shift+k
Usage Scenario: Select a variable or method name
9. Alt+shit+o Open or close the prompt for the selected variable or method
Usage Scenario: Select a variable or method name
10, Ctrl+shift+g
Search for all the places in the project where the selection unit is used