1. Eclipse shortcut key settings:
"Window" → "Preferences" → General → keys→ Find content assist
Enter the shortcut key you want to set in binding, OK
(Here content assist isCodeFor example, you can set other function shortcuts in the Keys table)
2. Common shortcut keys:
Comment code Ctrl +/(//) or Ctrl + Shift + /(/**/)
Uncomment cancel single line comment: Ctrl +/cancel multiple lines comment: Ctrl + Shift + \
Code-assisted Alt +/(prompts related methods, etc)
Quick Fix: Ctrl + 1 (batch rename with keywords)
F3 jump class and variable Declaration
CTRL + Shift + G jump to function call
CTRL + D: Delete the current row
CTRL + W close a Single Window
Switch the window Ctrl + F6 <you can change it to Ctrl + tab for convenience>
Note: Some shortcut keys can be directly selected by the mouse and right-click to replace the execution.
4. 10 most useful shortcut keys in eclipse
1. CTRL + Shift + R: Open the resource
2. CTRL + O: Quick outline
3. CTRL + E: Quick Switch to the editor window
4. CTRL + 2, L: assign values to local variables
5. Alt + Shift + R: Rename
6. Alt + Shift + L and ALT + Shift + M: extract local variables and Methods
7. Shift + enter and CTRL + Shift + enter
8. Alt + direction keys
9. CTRL + m
10. CTRL +. And Ctrl + 1: Next error and quick Modification
Other common shortcut keys:
CTRL + D: Delete the current row
CTRL + Shift + x change all selected text to lowercase
CTRL + Shift + y change all selected text to lowercase
CTRL + Left click to listSource codeLink Function
Left arrow or Alt + Left (direction key <--) on the toolbar: return the call position.
Global content assist Alt +/
Home key, the cursor locates at the beginning; end key, the cursor locates at the end.
Q: What is the shortcut key for selecting a row in eclipse?
A: "home" or "end" Jump to the beginning or end of the line. Shift + end or SHIFT + home select a row, or press the left button three times.