A lot of shortcut keys, one said that must not be finished!
You can also set it yourself in MyEclipse.
Here's a sticker for you, very full!
Eclipse Common shortcut keys
Eclipse is very powerful in its editing capabilities, and can greatly improve development efficiency by mastering the Eclipse shortcut key features. The following are some of the key shortcuts in eclipse that are related to editing.
1. "Alt+/"
This shortcut for the user to edit a good helper, can provide users with the content of the auxiliary, do not remember the whole method and attribute name, when the name of not all the class, method and attributes, more experience the "alt+/" shortcut keys bring benefits.
2. "Ctrl+o"
Displays an outline of methods and properties in a class that quickly locates the methods and properties of a class and is useful when looking for bugs.
3. "Ctrl+/"
Quickly add comments that enable you to quickly annotate or uncomment the row or selected line of the cursor, and you may need to annotate something or uncomment it while you are debugging, so now you don't need a duplicate comment for each line.
4. "Ctrl+d"
Delete the current row, which is also one of the author's favorite, do not have to delete a row and the deletion of the key so many times.
5. "Ctrl+m"
Window maximization and restore, when the user in the window to operate, always feel the current window small (especially when writing code), now good, try "ctrl+m" shortcut keys.
View and position shortcut keys
In the program, quickly locate the location of the code, quickly find where the bug is, it is very difficult, Eclipse provides a powerful lookup function, you can use the following shortcut keys to help complete the search positioning work.
1. "Ctrl+k", "Ctrl++shift+k"
Find the selection quickly down and up, and you will no longer need to click the Find dialog box with your mouse.
2. "Ctrl+shift+t"
Find a Java class file found in a workspace (Workspace) build path, do not be miserable for a class that cannot be found, and can use "*", "?" "The wildcard character.
3. "Ctrl+shift+r"
As with "Ctrl+shift+t", Find all the files (including Java files) in the workspace (Workspace), or you can use wildcard characters.
4. "Ctrl+shift+g"
Find references to classes, methods, and properties. This is a very useful shortcut, such as modifying the code that references a method, and you can quickly locate all references to this method by using the "ctrl+shift+g" shortcut key.
5. "Ctrl+shift+o"
Quickly generate import, when copying a program from the Internet, do not know how to import into the called class, try "ctrl+shift+o" shortcut keys, there will be surprises.
6. "Ctrl+shift+f"
Format code, writing format specification code is a compulsory course for every programmer, when you see a piece of code very uncomfortable, select and press the "ctrl+shift+f" shortcut key to format this code, if not selected code is 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 browser view, which is useful when you want to find the package where a file resides (especially in larger projects).
8. "Ctrl+l"
Navigates to a row in the current editor and is also valid for non-Java files.
9. "Alt+←", "alt+→"
Back history and forward history are useful for tracking code, and users may have looked up several related places, but may not be able to remember the order in which they are located.
10. "F3"
A quick way to locate a class, method, and property of the cursor position.
11. "F4"
Displays the inheritance relationship of the class and opens the Class inheritance view.
debugging shortcut keys
Some of the following shortcut keys for running debugging are available in eclipse.
1. "Ctrl+shift+b": a breakpoint that sets a breakpoint or cancels the setting on the current line.
2. "F11": Debug the Last execution of the program.
3. "Ctrl+f11": Run the last program executed.
4. "F5": Trace to the method, when the program executes to a method, you can press the "F5" key to trace to the method.
5. "F6": Step to execute the procedure.
6. "F7": After executing the method, return to the last statement that called this method.
7. "F8": Continue execution to the next breakpoint or program end.
frequently used editor shortcut keys
Often text editors provide shortcuts for editing, and you can use them for text editing in Eclipse.
1. "Ctrl + C": Copy.
2. "Ctrl+x": Cut.
3. "Ctrl + V": Paste.
4. "Ctrl+s": Save the file.
5. "Ctrl+z": withdrawn.
6. "Ctrl+y": Repeat.
7. "Ctrl+f": Find.
Other shortcut keys
There are many shortcuts in eclipse that cannot be enumerated, and users can find out how they are used through the help document, and there are several common shortcuts below.
1. "Ctrl+f6": Switch to the next editor.
2. "Ctrl+shift+f6": Switch to the previous editor.
3. "CTRL+F7": Switch to the next view.
4. "CTRL+SHIFT+F7": Switch to the previous view.
5. "Ctrl+f8": Switch to the next perspective.
6. "Ctrl+shift+f8": Switch to previous perspective.
There are more shortcuts in eclipse, you can find all the shortcuts using the Help document, but it is impossible to master all the shortcuts, and there is no need to take the time to familiarize yourself with the shortcuts listed in this section.
1. Edit->content Assist-> Add alt+/Code Association
2. Window-> Next Editor-> add ctrl+tab Toggle Window
3. Run/debug Toggle Line Breakpoint-> Add Ctrl + ' breaks and additions during debugging
4. source-> Surround with Try/catch block-> ctrl+shift+v add try Catch box
5. Source-> Generate getters and setters-> ctrl+shift+. Add Get Set method
-----------A useful shortcut key-----------
alt+/Code Assistant completes some code inserts (but general and the input method has the conflict, may modify the input method the hot key, may also take up alt+/to replace)
CTRL+1: The cursor stops on a variable and presses the CTRL+1 key to provide a quick refactoring scheme. Select several lines and press ctrl+1 to put this code in a for, while, if, do, or try code block.
Double-click the opening parenthesis (parentheses, brackets, curly braces) to select all the contents in parentheses.
Alt+enter displays the properties of the currently selected resource (project, or file or file)
-----------Ctrl Series-----------
Ctrl+k: Rest the cursor on the variable, press the Ctrl+k key to find the next same variable
Ctrl+shift+k: Opposite the direction of the Ctrl+k lookup
Ctrl+e quickly displays the Drop-down list for the current editer (if the current page is not displayed in bold)
CTRL+SHIFT+E Displays the manager that manages all currently open view (you can choose to turn off, activate, and so on)
Ctrl+q positioning to the last edit place
Ctrl+l positioned on a line (for more than 100 of the program people have the Gospel)
Ctrl+m maximizes the current edit or view (and then vice versa)
ctrl+/Note the current line, and then press to uncomment
Ctrl+t quickly displays the inheritance structure of the current class
CTRL+SHIFT-T: Opens type (open). If you don't mean to be on your own, forget the way to open the source tree.
Ctrl+o: Open a small window similar to outline view in code
CTRL + Mouse STOP: can show the source of classes and methods
Ctrl+h: Open the Search window
ctrl+/(keypad) collapses all code in the current class
Ctrl+x (keypad) expands all code in the current class
-----------Ctrl+shift Series-----------
Ctrl+shift+f Format the current code
Ctrl+shift+x the currently selected text all sour lowercase
Ctrl+shift+y the text that is currently selected into lowercase
Ctrl+shift+o: Importing import quickly
Ctrl+shift+r: Opening resource Open Resource
-----------F Accelerator Series-----------
F3: Open the file that declares the reference
F4: Open type hierarchy
F5: Stepping into
F6: Single Step Skip
F7: One Step jump
F8: Continue, if there are no breakpoints behind, the program will run out
-----------for-----------Line editing
Ctrl+d: Delete When moving forward
Ctrl+alt+↓ copy current line to next line (copy increase)
Ctrl+alt+↑ copy current line to previous line (copy increase)
Alt+↓ the current line and the following line of interactive position (especially practical, you can save the first cut, then paste)
Alt+↑ the current row and the previous line of interaction position (IBID.)
Shift+enter inserts a blank row on the next line in the current row (at which point the mouse can be anywhere in the current line, not necessarily the last)
Ctrl+shift+enter inserts a blank line on the current line (principle above)
----------------------that are not commonly used
alt+← the previous edited page
alt+→ the next edited page (for the above article, of course)
Ctrl+shift+s: Save All
Ctrl+w closes the current editer
CTRL+SHIFT+F4 Closes all open editer
Ctrl+shift+g: Search for references in workspace
Ctrl+shift+p navigate to the matching character (for example, {}) (when positioned from the front, the cursor is in the match, back to the front, or vice versa)
------ -----Don't understand-----------
ctrl+j forward Incremental lookup (after pressing CTRL+J, each letter editor you enter provides a quick match to locate a word, and if not, it is not found in Stutes line. When you look up a word, it's particularly useful, and this feature idea was available two years ago.
Ctrl+shift+j Reverse Incremental lookup (same as above, only from backwards)