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.
- shift+ alt+z: Condition: Select a piece of code, press the shortcut key, there will be a right-click menu, then you can enjoy the convenience of shortcut keys.
- ALT + arrow key ALT + up/down ARROW: Move cursor line. 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.
- Alt+shift+r: Rename the variable or the direction of the rename. Condition: Select a variable name or method name.
- Alt+shift+m: Extract the method, select a piece of code, and extract it into a method. The code block can be cleverly selected to automatically generate the method with parameters. How convenient AH.
- Alt+shift+l: Extracting variables and extracting methods are similar.
- 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.
- 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.
- Ctrl+k jump directly to the next occurrence, and vice versa: ctrl+shift+k Use scene: Select a variable or method name
- Alt+shit+o Open or close the prompt usage scenario for a selected variable or method: Select a variable or method name
- Ctrl+shift+g Search Selection unit in the project all the use of the place
- Ctrl+shift+r Open Resource Opens the search dialog for the resource file, which retrieves the matching files in real time based on your input values.
- Ctrl+alt+j to keep the code tidy, we often use CTRL+SHIFT+F to format the code. But what I want to say is that there are times when the code is indented for a better line. Today, I stumbled on a shortcut key ctrl+alt+j, which indents the code of the selected number of rows into one line .
- Ctrl+shift+p parentheses match: When we are in the code, especially in the commented code, we quickly find the range of code in parentheses. Unfortunately, it would be nice to have the code for this pair of parentheses selected.
- Ctrl+t Select a class name, a variable name, a method, or a blank, and so on, press ctrl+t to view the inheritance structure of the class of the current region
- Shift+alt+c Select a method to refactor the method, add parameters, and modify the return value type, which is much more powerful than the Ctrl+shift+r refactoring.
Continuous update ...
Common shortcut keys for Eclipse (Windows platform)