(1) Ctrl + Space
Description: Content assistant. Provides prompts for methods, variables, parameters, and javadoc, which should be used in various scenarios. In short, you can press this shortcut key when prompted.
Note: do not conflict with the input method switching settings.
(2) Ctrl + Shift + Space
Note: Variable prompt
(3) Ctrl +/
Note: Add/Remove // annotation. In eclipse2.0, the annotation for elimination is Ctrl +/
(4) Ctrl + Shift +/
Note: Add/**/comment
(5) Ctrl + Shift +/
Note: delete/**/comment
(6) Ctrl + Shift + F
Note: The code is automatically formatted.
(7) Ctrl + 1
Note: you can modify variable names in source code in batches and use them on catch blocks.
(8) ctril + F6
Note: interface switching
(9) ctril + Shift + m
Note: Find the desired package
(10) ctril + Shift + O
Note: The required package is automatically introduced.
(11) CTRL + ALT + S
Note: Quick menu for source code. Generate getters and setters and surround with try/catch
Block is commonly used. We recommend that you add them as shortcut keys. You can set the shortcut keys on Windows> preferences> workbench> keys.
2. Shortcut Key List
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 + x 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
This is the default version of eclipse. You can set it according to your habits!