Eclipse Common shortcut keys
Edit shortcut Keys
"alt+/" displays code hints, as well as code auto-completion features.
"ctrl+/" Add comment
"Ctrl+d" Delete when moving forward
Window shortcut keys
Maximize and restore the "ctrl+m" window
Viewing and locating shortcut keys
1. "Ctrl+k", "Ctrl+shift+k"
Find the selection quickly down and up, and you no longer need to click the Find dialog box with your mouse.
2.: "Ctrl+j", "Ctrl+shift+j"
Incremental Search, cool one find shortcut keys.
"Ctrl+shift+t"
"Ctrl+shift+r"
"Ctrl+shift+g"
Find references to classes, methods, and properties. This is a very useful shortcut key, such as to modify the code that refers to a method, you can quickly locate all references to this method by using the "ctrl+shift+g" shortcut key.
"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.
"Ctrl+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 "ctrl+shift+f" shortcut key can format this code, if the code is not selected the default format of the current file (Java file).
"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).
"Ctrl+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.
"F3"
A class, method, and property that quickly locates the cursor position.
"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. "Ctrl+shift+b": Sets a breakpoint at the current line or cancels the set breakpoint.
2. "F11": Debug the Last executed program.
3. "Ctrl+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.
8. "Ctrl + F2": End Debugging.
9. Ctrl + R: Jumps to the row where the mouse is located.
view Toggle shortcut keys
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 the previous perspective.
7. "F12": Activates the editor.
"Ctrl+q": Jumps to the last editing place; "Ctrl+shift+q": When the file is not saved, you can see your changes by the dark red flag next to the line number.
"Ctrl+w": Close the currently edited file; "Ctrl+shift+w": Close all files that are already open
"Ctrl+e": Activates and locates a file that is currently open; "Ctrl+shift+e": Same as ctrl+e, but needs to open a window.
"Ctrl+r": Unknown (?) "Ctrl+shift+r": Open Resource (opens resource files, such as Java files, etc.)
"Ctrl+t": Quick view of class hierarchy relationship; "Ctrl+shift+t": Open type (opens the specified type, such as class,interface, etc.)
"Ctrl+y": In contrast to "CTRL + Z", canceling the previous undo action "Ctrl+shift+x/y" turns the selected font into uppercase or all lowercase.
"Ctrl+u": Unknown (?) "Ctrl+shift+u": In the current window, find the number of occurrences and the results are listed in the Search window.
"Ctrl+i": Indent the current line correctly or select a row. "Ctrl+shift+i": Inspect (Debug)
"Ctrl+o": Quickly list the outline of a class. "Ctrl+shift+o": Automatically add or remove import statements
"Ctrl+p": Printer Window "ctrl+shift+p": matches the beginning or end of parentheses
"Ctrl + A": Select All. "Ctrl+shift+a": Open plug-in Artifact
"Ctrl+s": Saves the current file. "Ctrl+shift+s": Save all modified files
"Ctrl+d": Deletes a row. "Ctrl+shift+d": Unknown (? )
"Ctrl+f": Find replacements. "Ctrl+shift+f": Unknown (? )
"Ctrl+g": finds declarations with the same name in workspace. "Ctrl+shift+g": Find references in Workspace
"Ctrl+h": Find window. "Ctrl+shift+h": Open type in Hierarchy (opens the specified type in the Class inheritance hierarchy window)
"Ctrl+j": Forward incremental lookup. "Ctrl+shift+i": Reverse incremental lookup (at the beginning of the document)
"Ctrl+k": Forward lookup. "Ctrl+shift+k": Reverse lookup (at the beginning of the document)
"Ctrl+l": jumps to the specified line. "Ctrl+shift+l": Lists the shortcut keys supported by eclipse
"Shift+enter": Adds a row to the next line in the current edit row. "Ctrl+shift+enter": Adds a row to the previous line of the current edit line
"Ctrl + Z": Undo the previous modification operation. "Ctrl+shift+z": Unknown (?)
"Ctrl+x": Cuts selected text (when unchecked, behaves strangely). "Ctrl+shift+x": Relative to "Ctrl+shift+y", the selected text is all capitalized.
CTRL + C: Copy the selected text (when unchecked, the behavior is tricky). "Ctrl+shift+c": Comment one line (same as "ctrl+/")
"Ctrl + V": Paste "Ctrl+shift+v": Unknown (?)
"Ctrl+b": Build "ctrl+shift+b": Set breakpoints
"Ctrl + N": New "Ctrl+shift+n": Unknown (?)
"Ctrl+m": Maximize the window and restore "Ctrl+shift+m": Unknown (?)
"Ctrl +,": Next Annotation "ctrl+shift+,": Unknown (?)
"Ctrl +.": Previous Annotation "ctrl+shift+.": Unknown (?)
"ctrl+/": Comment "ctrl+shift+/": Toggle Comment
Edit shortcut Keys: (It is important that the work of encoding 80% is spent here and on jumps between files)
CTRL + Left/right: cursor skips a
CTRL + Up/down: scrolling the screen, browsing the code
CTRL + Home/end: Jump to the beginning or end of a file
Shift + Left/right: selected in alphabetic units
SHIFT + Up/down: Select Text up or down
CTRL + SHIFT + Left/right: Select by word
CTRL + SHIFT + up/down: Jump up/down in function
ALT + Left/right: Toggles between the closest browsing places.
ALT + up/down: Moves the line of the cursor up/down
CTRL + ALT + up/down: Copy a row and move (there is a conflict on Ubuntu).
CTRL + Q: Skip to last Edit
Eclipse Common shortcut keys