Eclipse common shortcut keys and eclipse shortcut keys
1. Several most important shortcut keys
Code ASSISTANT: Ctrl + Space (Alt +/in simplified Chinese /)
Quick Fix: Ctrl + 1
Word completion: Alt +/
Open the external Java document: Shift + F2
Display Search dialog box: Ctrl + H
Quick Outline: Ctrl + O
Open Resource: Ctrl + Shift + R
Open Type: Ctrl + Shift + T
Display reconstruction menu: Alt + Shift + T
Position of the previous or next cursor: Alt + Left/Right
Previous/next member (member object or member function): Ctrl + Shift + Up/Down
Select the closed element: Alt + Shift + Up/Down/Left/Right
Delete row: Ctrl + D
Insert a row on the current row: Ctrl + Shift + Enter
Insert a row under the current row: Shift + Enter
Move the selected row Up/Down: Alt + Up/Down
Organization import: Ctrl + Shift + O
2 Positioning
2.1 intra-row Positioning
End/End of line: End/Home
Previous/last word: Ctrl + Right/Left
2.2 File Location
Jump to a line: Ctrl + L
Scroll Up/Down: Ctrl + Up/Down
Previous/next member (member object or member function): Ctrl + Shift + Up/Down
Quick Outline: Ctrl + O
2.3 cross-File Location
Open statement: F3
Open Resource: Ctrl + Shift + R
Open Type: Ctrl + Shift + T
Search for the declaration of the selected element in workspace: Ctrl + G
Search for the selected text in workspace: Ctrl + Alt + G
Search for reference of the selected element in workspace: Ctrl + Shift + G
Open the call hierarchy: Ctrl + Alt + H
Quick hierarchy: Ctrl + T
Regret: Ctrl + Z
2.4 others
Position of the previous or next cursor: Alt + Left/Right
Last edited location: Ctrl + Q
3 selected
3.1 selected in the row
Shift + End/Home
Select the previous or next word: Ctrl + Shift + Left/Right
3.2 file selected
Select the closed element: Alt + Shift + Up
Restore to the previous check: Alt + Shift + Down
Select the next/previous element: Alt + Shift + Right/Left
4. Locate, select, and operate simultaneously
Delete row: Ctrl + D
Delete the next/previous word: Ctrl + Delete/Backspace
Delete to the end of the row: Ctrl + Shift + Delete
Insert a row on the current row: Ctrl + Shift + Enter
Insert a row under the current row: Shift + Enter
Move the selected row Up/Down: Alt + Up/Down
Copy the selected row: Ctrl + Alt + Up/Down
5. Other code editing shortcut keys
Save: Ctrl + S
Save all: Ctrl + Shift + S
Next hit item (after search): Ctrl +.
Note: Ctrl +/
Add import: Ctrl + Shift + M
Show shortcut key help: Ctrl + Shift + L
Change to uppercase/lowercase: Ctrl + Shift + X/Y
6. refactoring
Display reconstruction menu: Alt + Shift + T
Reconstruction-change method Signature: Alt + Shift + C
Reconstruction-move: Alt + Shift + V
Reconstruction-Rename: Alt + Shift + R
7 switch between Editor, view, and perspective
Next Editor: Ctrl + F6
Next view: Ctrl + F7
Next perspective: Ctrl + F8
Maximize the current view or editor: Ctrl + M
Activate Editor: F12
8 Debug
F5: Step Into (debug)
F6: Step over (debug)
F7: Step return (debug)
F8: Resume (debug)
F11: debug the previous application (debug)
9 Up/Down/Right/Left shortcut
Ctrl
Previous/last word: Ctrl + Right/Left
Scroll Up/Down: Ctrl + Up/Down
Alt
Position of the previous or next cursor: Alt + Left/Right
Move the selected row Up/Down: Alt + Up/Down
Shift
Select the previous/next character: Shift + Left/Right
Select the previous line/next line (starting from the current cursor position): Shift + Up/Down
Ctrl + Shift
Previous/next member (member object or member function): Ctrl + Shift + Up/Down
Select the previous or next word: Ctrl + Shift + Left/Right
Alt + Shift
Select the closed element: Alt + Shift + Up
Restore to the previous check: Alt + Shift + Down
Select the next/previous element: Alt + Shift + Right/Left
Copy the selected row: Ctrl + Alt + Up/Down
Ctrl + Alt
Copy the selected row: Ctrl + Alt + Up/Down
10 F shortcut keys
F2: Display prompt/rename
F3: Open the declaration of the selected Element
F4: Open the type inheritance structure of the selected Element
F5: refresh
F5: Step Into (debug)
F6: Step over (debug)
F7: Step return (debug)
F8: Resume (debug)
F11: debug the previous application (debug)
F12: Activate Editor
Supplement:
Ctrl + 1 quick fix (the most classic shortcut, you don't need to talk about it)
Ctrl + D: Delete the current row
Ctrl + Alt + ↓ copy the current row to the next row (copy added)
Ctrl + Alt + ↓ copy the current row to the previous row (copy added)
Alt + ↓ interaction position between the current row and the following row (especially practical, you can save cutting and pasting)
Alt + ↑ interaction between the current row and the previous row (same as above)
Alt + ↓ previous edited page
Alt + → next edited page (of course for the above)
Alt + Enter display the properties of the currently selected resource (project, or file)
Shift + Enter insert empty rows in the next row of the current row (the mouse can be at any position of the current row, not necessarily the last row)
Shift + Ctrl + Enter insert blank lines in the current line (same principle)
Ctrl + Q locate the Last edited location
Ctrl + L locate in a line (for those with more than 100 programs, there will be good news)
Ctrl + M maximize the current Edit or View (then press it, and vice versa)
Ctrl +/comment out the current row, and then press it to cancel the comment
Ctrl + O quick OutLine display
Ctrl + T quickly display the inheritance structure of the current class
Ctrl + W disable the current Editer
Ctrl + K quickly locate to the next one by referencing the selected Word
Ctrl + E: Click it to quickly display the drop-down list of the current Editer (if the current page is not displayed, it is displayed in bold)
Ctrl +/(keypad) collapse all code in the current class
Ctrl + × (keypad) show all the code in the current class
Ctrl + Space Code assistant inserts some code (but it is usually in conflict with the input method. You can modify the key of the input method or replace it with Alt +/for the moment)
Ctrl + Shift + E display the managers that manage all Opened Views (you can choose to close or activate them)
Ctrl + J forward incremental search (after pressing Ctrl + J, each letter editor you enter provides a quick match to locate a word. If not, it is not found in stutes line. It is particularly useful when querying a word. This function was available two years ago)
Ctrl + Shift + J reverse incremental search (the same as the previous one, but only from the back to the front)
Ctrl + Shift + F4 close all open Editer
Ctrl + Shift + X change all selected text to lowercase
Ctrl + Shift + Y change all selected text to lowercase
Ctrl + Shift + F format the current Code
Ctrl + Shift + P locate the matched character (for example, {}) (when positioning from the front, the cursor must be inside the matched character, followed by the front, and vice versa)
The following shortcut keys are commonly used in refactoring. I like them and want to sort them out frequently (note: the keys for refactoring generally start with Alt + Shift)
Alt + Shift + R Rename (one of my favorite ones, especially the Rename of variables and classes, which saves a lot of labor compared with manual methods)
Alt + Shift + M extraction method (this is one of the most common methods in refactoring, especially useful for a lot of mud code)
Alt + Shift + C modify the function structure (more practical. N functions call this method and modify it once)
Alt + Shift + L extract local variables (you can directly extract some magic numbers and strings into one variable, especially when multiple calls are performed)
Alt + Shift + F convert the local variable in the Class to the field variable (more practical)
Alt + Shift + I merge variables (this may be a bit inappropriate Inline)
Alt + Shift + V moving functions and variables (not commonly used)
Alt + Shift + Z restructured regret medicine (Undo)
Edit
Shortcut for scope Function
Globally search and replace Ctrl + F
Search for the previous Ctrl + Shift + K in the text editor
Search for the Next Ctrl + K in the text editor
Globally undo Ctrl + Z
Global copy Ctrl + C
Select Alt + Shift + continue for global recovery.
Globally cut Ctrl + X
Global quick correction Ctrl1 + 1
Global content assist Alt +/
Globally select Ctrl +
Delete globally
Global context information Alt +?
Alt + Shift +?
Ctrl + Shift + Space
Java editor display tooltip description F2
Java editor selects the encapsulation element Alt + Shift + Transform
Java editor selects the previous element Alt + Shift + ↓
Select the next element Alt + Shift + →
Text Editor incremental search Ctrl + J
Text Editor incremental reverse lookup Ctrl + Shift + J
Globally paste Ctrl + V
Global redo Ctrl + Y
View
Shortcut for scope Function
Zoom in globally Ctrl + =
Ctrl +-
Window
Shortcut for scope Function
Global activation editor F12
Global switch editor Ctrl + Shift + W
Global editor Ctrl + Shift + F6
Global View Ctrl + Shift + F7
Global Perspective Ctrl + Shift + F8
The next global editor Ctrl + F6
Next Global View Ctrl + F7
Ctrl + F8
Text Editor display ruler context menu Ctrl + W
Global View menu Ctrl + F10
Global display of System Menu Alt +-
Navigation
Shortcut for scope Function
Open the structure Ctrl + F3 in the Java editor.
Global Open type Ctrl + Shift + T
Global Open Type hierarchy F4
Global open declaration F3
Open external javadoc Shift + F2 globally
Globally open resource Ctrl + Shift + R
Global rollback history Alt + rollback
Global forward history Alt + →
Ctrl +,
Ctrl +.
Java editor display outline Ctrl + O
Globally open the type Ctrl + Shift + H in the hierarchy
Globally move to matching parentheses Ctrl + Shift + P
Go global to the previous editing location Ctrl + Q
Go to the previous Member Ctrl + Shift + ← in the Java editor.
Go to the next member in the Java editor Ctrl + Shift + ←
Text Editor to Ctrl + L
Search
Shortcut for scope Function
Globally displayed in the file Ctrl + Shift + U
Global Search dialog box Ctrl + H
Declare Ctrl + G in the global Workspace
Reference Ctrl + Shift + G in the global Workspace
Text editing
Shortcut for scope Function
Text Editor rewrite switch Insert
Ctrl + ← on the text editor
Ctrl + ←
File
Shortcut for scope Function
Save Ctrl + S globally
Print Ctrl + P globally
Globally Disable Ctrl + F4
Globally save Ctrl + Shift + S
Globally Disable Ctrl + Shift + F4
Global attribute Alt + Enter
Globally create Ctrl + N
Project
Shortcut for scope Function
Global build Ctrl + B
Source code
Shortcut for scope Function
Java editor format Ctrl + Shift + F
Java editor uncomment Ctrl + \
Java editor comment Ctrl +/
Add and import Ctrl + Shift + M to the Java Editor
Java editor organization import Ctrl + Shift + O
The Java editor uses try/catch blocks to enclose unset ones, which is too common. Therefore, we recommend that you set them here.
You can also use Ctrl + 1 for automatic correction.
Run
Shortcut for scope Function
F7 is returned in one global step.
Skip F6 in one global step
Global One-Step Jump to F5
Global One-Step Jump-in and select Ctrl + F5
Global debugging last started F11
Continue F8 globally
Shift + F5 in one step using filters globally
Globally Add/remove breakpoints Ctrl + Shift + B
Global display Ctrl + D
Global run last started Ctrl + F11
Run Ctrl + R globally
Execute Ctrl + U globally
Reconstruction
Shortcut for scope Function
Global undo reconstruction Alt + Shift + Z
Global extraction method Alt + Shift + M
Global extraction of local variables Alt + Shift + L
Global inline Alt + Shift + I
Move Alt + Shift + V globally
Globally rename Alt + Shift + R
Global redo Alt + Shift + Y
Source: http://www.jb51.net/article/74618.htm