an Eclipse common shortcut key
- Ctrl+q: Jumps to the last edit point.
- Ctrl+f: Finds and replaces in the current file.
- Ctrl+t: View the inheritance relationship for the class.
- ALT + LEFT ARROW: Returns to the previous position of the cursor.
- ALT + RIGHT ARROW: Advances to the next position of the cursor.
- alt+shift+s: Open the right-click menu, note that after opening the context menu, the items also have shortcut keys, R generate Getter/setter method, V rewrite or implementation method, o use attributes to create constructors, c to inherit parent class constructor classes to create constructors.
- ctrl+shift+/: Add a block comment.
- Ctrl+shift+\: Cancels the block comment.
- ctrl+/: Adds or cancels line comments.
- Alt+shift+l: Extracts a local variable, such as extracting the literal value, to create a reference variable for it.
- Ctrl+shift+r: Find local resources.
- Alt+shift+r: Rename.
- Ctrl+h: Finds the file that contains the specified content.
- Alt+shift+z: Add a try---Catch to the selected code.
- Alt+shift+z+3: Wraps the selected code into an if statement.
- ALT + UP ARROW/down ARROW: Place the cursor on one line, and move the row up or down.
- ctrl+alt+ up ARROW/down ARROW: Copies a row up or down.
- Alt+shift+m: Creates a method for the selected code.
- Alt+shift+x,t: Run in JUnit.
- ALT +?: Displays what you can insert in the current position, and outputs the selected content through System.out.println.
- Shift+enter: Inserts a blank line under the current line.
- Alt+shift+a: Turns multi-line editing mode on or off.
Eclipse Common Operations