Eclipse shortcut keys

Source: Internet
Author: User

Ctrl+shift+o, Ctrl+shift+m, Automatic guide pack.

CTRL+SHIFT+F, format code.

Ctrl+alt+h, open the call hierarchy.

CTRL+F3, opens the structure, showing the structure of the selected element.

Ctrl+shift+h, open the type in the type hierarchy view.

Ctrl+o, Ctrl+t, opens a quick outline of the method properties of the class, showing a quick hierarchy of the selected elements.

F3, turn on the declaration of the selected variable or method (open declaration), or hold down the CTRL key and click, I generally like to define it as a search for a string shortcut, just like the UE Text tool.

Ctrl+shift+r, locate the resource (all files) in the project.

Ctrl+shift+t, unlike Ctrl+shift+r, is that it only looks for Java classes.

Ctrl+shift+g, searches the workspace for all references to the selected element.

Ctrl+f, open the Find/Replace Text dialog box.

Ctrl+g, searches the workspace for a declaration of the selected element.

Ctrl+h, open the Search dialog box.

Ctrl+alt+g, search for the selected text in the workspace.

Ctrl+k, find the next currently selected string (generally I prefer to set to F3), Ctrl+shift+k, to find the last currently selected string. Note, if you want to have the loop lookup function, that is, to find the most one to jump to the first, you need to press CTRL+F after you select Wrap Search.

Ctrl+b, build all projects.

Ctrl+m, Ctrl+w maximized with the Restore window, closes the window.

Alt+left, Alt+right, Ctrl+q, a step forward in history (a bit to the browser's back and forward buttons, especially useful after using a F3 jump), a step back in history, the most recent edit file location, which is useful to want to return to the original position after tracking the code.

Ctrl+shift+e, displays the manager that manages all of the currently open View (you can choose to close, activate, and so on).

Ctrl+e, quick Switch Editor, open editor drop-down list, can quickly navigate to open a file, especially when opening a lot of files is useful.

Ctrl+shift +c, single-line comment and go comment.

ctrl+shift+/, block comment.

Ctrl+shift+\, remove the block comment.

Alt+shift+j, quickly add comments by template

Ctrl+delete, delete one word after the cursor.

Ctrl+backspace, delete the previous word of the cursor.

Shift+home, select all text from the cursor position to the beginning of the line.

Shift+end, select all text starting at the cursor position to the end of the line.

Ctrl+shift+home, select all text from the cursor position to the beginning of the file.

Ctrl+shift+end, select all text starting at the cursor position to the end of the file.

Ctrl+shift+left, the text is continuously selected in the word unit.

Ctrl+shift+right, the text is continuously selected in the word unit backwards.

Shift+alt+up, select all the code for a method (the cursor is in the method).

Ctrl+d, deletes the current row.

ctrl+alt+ down/up, copy row down/up.

Alt+down/up, moves the current line down/up.

Ctrl+l, the cursor jumps to the specified line.

Ctrl+home, the cursor is positioned to the file header.

Ctrl+end, the cursor is positioned to the end of the file.

Ctrl+left, the cursor moves forward in words.

Ctrl+right, the cursor moves backwards in words.

Shift+ctrl+down/up, the cursor jumps to the next/previous method.

Ctrl shift+p to move the cursor to the matching square brackets.

Ctrl+shift+x/y the currently selected text is all stale/uppercase.

alt+/, auto-complete.

ctrl+1, quick fix.

CTRL + 1, select a value expression, you can extract the expression into a local variable, which is a good refactoring for a large number of repeated use of a way to get a value, such as when we take its size in a set full list, and many places, which affect the efficiency, here we can list.size () to extract.

Alt+shift+r, rename the file name, method name, property name, variable name.

Alt+shift+s, displays the source code build Quick Menu.

Alt+shift+t, displays the refactoring Quick menu.

Alt+shift+m, the extraction method (which is one of the most common methods of refactoring, especially useful for a whole bunch of mud codes).

Alt+shift+c, modify the function structure (more practical, there are N functions called this method, modified once done).

Alt+shift+l, extract local variables (you can simply extract some magic numbers and strings into a variable, especially when multiple calls are made).

Alt+shift+f, change the local variable in Class to a field variable (a more useful function).

Alt+shift+f, add the Javadoc comment stub to the member element.

Alt+shift+i an inline constant, local variable, or method.

ALT+SHIFT+V move functions and variables (not commonly used).

Alt+shift+z reconstruction of the Regret Medicine (Undo).

SHIFT+ALT+X, open the program to run the shortcut menu, and then you can select the type to run from.

Ctrl+shfit+l, the shortcut menu is displayed.

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.