Eclipse shortcut keys

Source: Internet
Author: User

Eclipse Common shortcut keys
-----------"ALT +" shortcut key series-----------
. "alt+/"
This shortcut is a good helper for the user to edit, can provide users with the content of the auxiliary, 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.
. "Alt+↓" The current line and the following line of interactive position (particularly useful, you can eliminate the first cut, and then paste)
. "Alt+↑" the current row and the previous row interaction position (IBID.)
. "alt+←", "alt+→"
Backward history and forward history are very useful in tracking code, and users may find several related places that can be used to locate the order of the two shortcuts when they are not clearly remembered.
. "Alt+enter": Displays the properties of the currently selected resource (project, or file or 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 +" shortcut key series-----------
. "Ctrl + A": Select All.
. "Ctrl + C": Copy.
. "Ctrl+d": Delete the current line, this is the author's favorite one, do not have to delete a row and press so many times the delete key.
. "Ctrl+e": quickly displays the current Editer drop-down list (in bold if the current page does not appear)
. "Ctrl+f": Find.
. "Ctrl+h": Open the Search window
. "Ctrl+j": Forward incremental lookup (after pressing CTRL+J, each letter editor you enter provides a quick match to navigate to a word, if not, it is not found in the Stutes line, check a word, especially useful, this function idea two years ago)
. "Ctrl+k", "ctrl++shift+k" quickly look down and up the selection, hover the cursor over the variable, press Ctrl+k to find the next same variable, no longer need to click the Find dialog with the mouse.
. "Ctrl+l": Navigates to a row in the current editor and is also valid for non-Java files.
. "Ctrl+m": Window maximization and restore, when the user in the window to operate, always feel that the current window is small (especially when writing code), now good, try "ctrl+m" shortcut keys.
. "Ctrl+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.
. "Ctrl+q": Navigate to the last edited place
. "Ctrl+s": Save the file.
. "Ctrl+t": Quickly display the inheritance structure of the current class
. "Ctrl + V": Paste.
. "Ctrl+w": Close the current editer
. "Ctrl+x": Cut.
. "Ctrl+y": Repeat.
. "Ctrl + Z": Undo.
. "ctrl+/": Quickly add comments, you can quickly add comments or uncomment the line or selected line of the cursor, while debugging may always need to comment on some things or uncomment, now well, do not need to repeat each line of comments.
. "Ctrl+1": the cursor stops at a variable, pressing the CTRL+1 key, can provide a quick refactoring scheme. Select several rows and press Ctrl+1 to place the code in a block of code such as, while, if, do, or try. Double-click the opening parenthesis (parentheses, brackets, curly braces) to select everything in parentheses.
. "CTRL+F3": Java editor open structure
. "CTRL+F10": Global Display View menu
. "Ctrl+f11": Runs the program that was last executed.


-----------"ctrl+shift+" shortcut key series-----------
"Ctrl+shift+b" sets a breakpoint on the current line or cancels the set breakpoint.
"Ctrl+shift+e" displays the manager that manages all of the currently open view (you can choose to close, activate, and so on)
"CTRL+SHIFT+F" format code, write the code of the format specification is a required lesson for every programmer, when you see a piece of code very uncomfortable, select and press "ctrl+shift+f" shortcut to format this code, If you do not select the code, the current file (Java file) is formatted by default.
"Ctrl+shift+g" finds 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+j" Reverse incremental lookup (same as ctrl+j, just looking backwards)
"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+p" navigates to the match (for example {}) (after locating from the front, the cursor is in the match, back to the front, or vice versa)
"Ctrl+shift+r" and "ctrl+shift+t" correspond to find all the files (including Java files) in the workspace (Workspace), or you can use wildcard characters.
"Ctrl+shift+s" Save All
"Ctrl+shift+t" opens the type (open type). The way it is opened through the source tree. 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.
"Ctrl+shift+x" turns the currently selected text all lowercase
"Ctrl+shift+y" turns the currently selected text all lowercase
"Shift+enter" Inserts a blank row on the next line of the current row (at which point the mouse can be at any position in the current row, not necessarily the last)
"Ctrl+shift+enter" inserts a blank line in the current line (principle above)
"Ctrl+shift+f4" Closes all open editer


-----------"ctrl+alt+" shortcut key series-----------
"Ctrl+alt+↓" copies the current line to the next row (replication incremented)
"Ctrl+alt+↑" copies the current line to the previous row (replication incremented)


-----------F shortcut Key series-----------
F2: Renaming a file or project
F3: Opens a file that declares the reference, quickly locates a class, method, and property of the cursor position.
F4: Opens the type hierarchy, displays the inheritance relationship for the class, and opens the class inheritance view.
F5: Step Into, trace into the method, when the program executes to a method, you can press the "F5" key to trace into the method.
F6: Stepping through, stepping through the execution program.
F7: Step Out, execute the method, and return to the next statement that called this method.
F8: Continue, if there are no breakpoints behind, the program will run out
F11: debugs the last executed program.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Eclipse shortcut keys

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.