Eclipse prompts that the source solution cannot be found
Click "Change connected"Source code", And then find the JDK installation directory, c: \ Program Files \ Java \ jdk1.6.0 _ 22 \ src.zip
Src.zip is the package for storing the source code in JDK. You can see the source code right away.
One-Step Jump-in: Step into debugging, step-by-step debugging of sub-functions in the statement
Skip in one step: Step over debugging, skip this line of statements, and go to the next line for debugging
Return in one step: debug step out, jump out of the current function, and go to the call source for debugging.
eclipse shortcut keys (reprinted)
Ctrl + 1 quick fix (the most classic shortcut key, you don't have to say more)
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 (this is especially useful. cut and paste it again)
Alt + ↑ the interaction position between the current row and the previous row (same as above)
Alt + ↓ previous edited page
Alt + → next edited page (of course for the previous one)
Alt + enter: displays the currently selected resources (project, or file)
SHIFT + enter insert null rows in the next row of the current row (the mouse can be at any position of the current row, not necessarily at the end)
SHIFT + Ctrl + enter insert blank lines in the current row (same principle)
Ctrl + q locate to the Last edited location
Ctrl + l locate in a line (for programs that exceed 100 of people have the Gospel)
Ctrl + M maximize the current edit or view (then press and vice versa)
Ctrl +/comment out the current row, press the button to cancel the comment
Ctrl + O to quickly display outline
Ctrl + T to quickly display the inheritance structure of the current class
Ctrl + W to close the current editer
CTRL + k quickly navigate to the next
Ctrl + e to quickly display the drop-down list of the current editer by referring to the selected word (if the current page does not show the drop-down list in bold)
Ctrl +/(keypad) collapse all Code
Ctrl + × (keypad) in the current class) expand All the code in the current class
Ctrl + Space Code assistant to insert some code (but generally there is a conflict with the input method, you can modify the Input key, you can also use Alt +/instead)
Ctrl + Shift + e to display the managers that manage all Opened Views (you can choose to disable, activate, and perform other operations)
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 displayed in stutes line.
I found it. It is especially useful when I look up 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 + x globally
CTRL + S
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
Debugging commands in eclipse
One-Step Jump-in: Step into debugging, step-by-step debugging of sub-functions in the statement
Skip in one step: Step over debugging, skip this line of statements, and go to the next line for debugging
Return in one step: debug step out, jump out of the current function, and go to the call source for debugging.
1.
If (AA = fun (XX, XX) then current breakpoint location
{
AA = B;
}
After performing the One-Step Jump, enter the first statement of the fun () function and continue debugging.
2.
AA = fun (); current breakpoint location
BB = AA;
When the execution is skipped in one step, go to BB = AA; statement to continue debugging
3.
Fun ()
{
AA = BB; current breakpoint location
BB = cc;
Cc = dd;
}
Void main ()
{
...
Fun ();
Dd = EE;
}
After a single return is executed, go to the DD = EE; Statement of the main function and continue debugging.
7
| Comment