Eclipse shortcut Keys-Easy to find
"Ct rl+t"
Search the implementation class for the current interface
1. "ALT +/"
This shortcut is a good helper for the user to edit, can provide users with the content of the assistant, do not worry about the method and the name of the property, when not the whole class, methods and attributes of the name, more experience the "ALT +/" shortcut to bring the benefits of it.
2. "Ct Rl+o"
shows an outline of the methods and properties in a class that quickly locates the methods and properties of a class and is useful for finding bugs.
3. "Ct rl+/"
Quickly add comments, can quickly add a comment or uncomment the line of the cursor or the selected line, you may always need to annotate something or uncomment it when debugging, and now it's okay to repeat the comments on each line.
4. "Ct Rl+d"
Delete the current line, which is also the author's favorite one, do not have to delete a row and press so many times the delete key.
5. "Ct rl+m"
Window maximization and restore, the user in the window to operate, always feel that the current window is small (especially when writing code), now well, try "Ct rl+m" shortcut keys.
Viewing and locating shortcut keys
In the program, quickly locate the location of the code, quickly find the place where the bug is very difficult, Eclipse provides a powerful search function, you can use the following shortcut keys to help complete the job of locating.
1. "Ct rl+k", "CT rl++shift +k"
Find the selection quickly down and up, and you no longer need to click the Find dialog box with your mouse.
2. "Ct rl+shift +t"
Find a Java class file in the search workspace (Workspace) build path, and do not suffer for the class being found, and you can use "*", "? "And so on wildcard characters.
3. "Ct rl+shift +r" Find file
The "Ct rl+shift +t" Lookup class finds all the files in the workspace (Workspace), including Java files, or you can use wildcard characters.
4. "Ct rl+shift +g"
Find references to classes, methods, and properties. This is a very useful shortcut key, for example, to modify the code that refers to a method, you can quickly locate all references to this method through the "Ct rl+shift +g" shortcut key.
5. "Ct rl+shift +o"
Quickly generate import, when copying a program from the Internet, do not know how to import into the called class, try "Ct rl+shift +o" shortcut keys, there will be surprises.
6. "Ct rl+shift +f"
Format code, write the code of the format specification is a compulsory lesson for every programmer, when see a piece of code is very uncomfortable, select and press "Ct rl+shift +f" shortcut key can format this code, if the code is not selected the default format of the current file (Java file).
7. "ALT +shift +w"
Find the path in the project where the current file is located, and you can quickly locate the location of the browser view, which is useful if you want to find a package that contains a file (especially in larger projects).
8. "Ct rl+l"
Navigates to a row in the current editor and is also valid for non-Java files.
9. "Alt +←", "Alt +→"
Backward history and forward history are useful in tracking code, and users may find several associated places, but they may not be able to remember the order in which they are located by these two shortcut keys.
10. "F3"
A class, method, and property that quickly locates the cursor position.
11. "F4"
Displays the inheritance relationship for the class and opens the Class inheritance view.
debugging shortcut keys
There are several shortcut keys in eclipse that are related to running debugging.
1. "Ct rl+shift +b": Sets a breakpoint at the current line or cancels the set breakpoint.
2. "F11": Debug the Last executed program.
3. "Ct rl+f11": Run the last executed program.
4. "F5": Trace into the method, when the program executes to a method, you can press the "F5" key to trace to the method.
5. "F6": Step Into the program.
6. "F7": Executes the method, returning to the next statement that called this method.
7. "F8": Continue execution to the next breakpoint or end of the program.
Common editor shortcut keys
Usually the text editor provides some shortcut keys related to editing, which you can also use to edit text in eclipse.
1. "Ct rl+c": Copy.
2. "Ct rl+x": Cut.
3. "Ct rl+v": Paste.
4. "Ct Rl+s": Save the file.
5. "Ct rl+z": withdrawn.
6. "Ct rl+y": Repeat.
7. "Ct rl+f": Find.
Other shortcut keys
There are many shortcuts in eclipse that you can't enumerate, and you can find out how to use them by helping them, and there are a couple of common shortcut keys below.
1. "Ct Rl+f6": Switch to the next editor.
2. "Ct rl+shift +f6": Switch to the previous editor.
3. "Ct rl+f7": Switch to the next view.
4. "Ct rl+shift +f7": Switch to the previous view.
5. "Ct Rl+f8": Switch to the next perspective.
6. "Ct rl+shift +f8": Switch to the previous perspective.
Line Comment/Pin comment Ct rl+/
Block comment/Pin comment ct rl+sh ift +/CT rl+sh ift +\
Find replacement CT Rl+h CT rl+f
Find related Information CT RL + SHIFT + T finds the corresponding class through the class name, including in that package, as well as hints.
Look for the next/back CT Rl+k ct rl+sh ift +k
Jump to a line of CT rl+l, ha used to edit plus, will occasionally knock down CT rl+g,
Find the declaration of the current element ct rl+g or CT RL plus left mouse button
Finds all references to the current element Ct Rl+sh IFT +g
Reorganize import Ct rl+sh ift +o can help you remove all unused import declarations at once!
Back to last viewed point Ct rl+q look at the source is very useful
Copy a piece of code Ct Rl+alt + Next
Rapid correction of Ct rl+1
Introduce a class (interface) CT RL + sh IFT + M
Add Header note SH ift + ALT + J
CT RL + sh IFT + G: View references
CT RL + sh IFT + N: Rename
CT RL + sh IFT + O: Import class
CT RL + sh IFT + R: Start last Run
CT RL + sh IFT + F: Format code
CT RL + C: Copy
CT RL + V: Paste
CT RL + x: Cut and cut
CT RL + A: Select All
CT RL + F: Find
CT RL + z: Undo
CT RL + y: Redo
CT RL + S: Save
---------------------------------------------------------------
The most used should be CT rl+sh IFT +s
There are also many formats to use.
---------------------------------------------------------------
CT RL + sh IFT + F format code
CT RL + SH IFT + o organization Import
F3 opening a statement
Alt + sh ift + R rename variable
---------------------------------------------------------------
Up
---------------------------------------------------------------
Alt +/
---------------------------------------------------------------
ALT + Left
ALT + Righ T
CT RL + Q
---------------------------------------------------------------
CT RL + sh IFT + G: View references
CT RL + sh IFT + N: Rename
CT RL + sh IFT + F: Format code
CT RL + C: Copy
CT RL + V: Paste
CT RL + A: Select All
CT RL + F: Find
CT RL + z: Undo
CT RL + S: Save
Alt +/Smart Tips
---------------------------------------------------------------
CT RL + sh IFT + G: View references
CT RL + sh IFT + N: Rename
CT RL + sh IFT + O: Import class
CT RL + sh IFT + R: Start last Run
CT RL + sh IFT + F: Format code
CT RL + C: Copy
CT RL + V: Paste
CT RL + x: Cut and cut
CT RL + A: Select All
CT RL + F: Find
CT RL + z: Undo
CT RL + y: Redo
CT RL + S: Save
Alt +/Smart Tips
F3 opening a statement
Alt + sh ift + R rename variable
In fact, the most common is the following:
CT RL + sh IFT + O: Import class
CT RL + sh IFT + F: Format code
CT RL + C: Copy
CT RL + V: Paste
CT RL + x: Cut and cut
CT RL + z: Undo
CT RL + S: Save
Alt +/Smart Tips
---------------------------------------------------------------
Ct rl+m: Maximizing/minimizing the work area
Alt +/: Smart Tips
F3: View statement
CRT l+1: Fix Error
Sh IFT +alt +t: Refactoring
Sh IFT +alt +m: Extract function
Sh IFT +alt +r: Renaming
Sh IFT +alt +c: changing function markers
Ct rl+sh It f+f: Formatting code
---------------------------------------------------------------
CT RL + sh IFT + O: Import class
At L +/: Tips
CT RL + sh IFT + t: Find related information
---------------------------------------------------------------
Eclipse Shortcut Key Guide
Edit
scope function Shortcut keys
Global find and replace Ct rl+f
Text Editor Find previous Ct rl+sh IFT +k
Text editor Find Next Ct rl+k
Global undo Ct Rl+z
Global Replication Ct Rl+c
Global Restore previous selection Alt +sh ift +↓
Global Shear Ct Rl+x
Global Rapid correction Ct rl1+1
Global Content-assisted ALT +/
Global All selected Ct Rl+a
Global Delete Delet E
Global context information Alt +?
Alt +sh IFT +?
Ct rl+sh IFT +space
Java Editor display tooltip description F2
Java Editor Select package element Alt +sh IFT +↑
Java Editor Select previous element Alt +sh IFT +←
Java Editor Select next element Alt +sh IFT +→
Text Editor Incremental Search Ct rl+j
Text Editor Incremental reverse lookup Ct rl+sh IFT +j
Global Paste Ct Rl+v
Global Redo Ct Rl+y
Eclipse shortcut keys