Eclipse shortcut keys

Source: Internet
Author: User
Tags try catch

Edit

Ctrl+1 Fast Repair (the most classic shortcut keys, there is no need to say, can solve a lot of problems, such as import class, try catch surrounded, etc.)
Ctrl+shift+f formatting of the current code
Ctrl+shift+m adding import imports for classes
Ctrl+shift+o the import of the Organization class (both the role of ctrl+shift+m, but also can help you remove the useless import, it is useful)
Ctrl+y Redo (contrary to undo Ctrl + Z)
alt+/content Assist (how many times you save the keyboard beat, too often)
Ctrl+d Delete the current line or multiple rows
Alt+↓ the current line and the next line of interaction (especially useful, can be omitted first cut, then pasted)
Alt+↑ the current line and the upper row interaction position (IBID.)
Ctrl+alt+↓ Copy the current row to the next row (replication incremented)
Ctrl+alt+↑ Copy the current line to the previous row (replication incremented)
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+/comment on the current line, and then uncomment it

Choose

Alt+shift+↑ Selecting encapsulated elements
alt+shift+← Select Previous Element
alt+shift+→ Select the next element
Shift+← Select characters from the cursor to the left
shift+→ Select characters from the cursor at the right
Ctrl+shift+← Select the word to the left of the cursor
ctrl+shift+→ Select the word with the cursor and the edge

Move

The ctrl+← cursor moves to the beginning of the word on the left, the equivalent of Vim's B
The ctrl+→ cursor moves to the end of the right word, the equivalent of Vim's E

Search

Ctrl+k the selected word quickly navigates to the next (if Word is not selected, search for Word last used search)
Ctrl+shift+k the selected word quickly navigates to the previous
Ctrl+j forward Incremental Lookup (press CTRL+J, you enter the letter editor to provide a quick match to navigate to a word, if not, then in the status bar display did not find, check a word, especially useful, to exit this mode, according to escape to build)
CTRL+SHIFT+J Reverse incremental lookup (same as above, except forward)
Ctrl+shift+u list all rows that contain strings
Ctrl+h Open the Search dialog box
Ctrl+g declarations in the workspace
Ctrl+shift+g references in the workspace

Navigation

Ctrl+shift+t Search classes (including engineering and associated third jar packages)
Ctrl+shift+r searching for files in a project
Ctrl+e quick display of the current Editer drop-down list (in bold if the current page does not appear)
F4 Open Type Hierarchy
F3 Jump to Declaration
alt+← the previous edited page
alt+→ next Edit page (of course, for the above article)
Ctrl+pageup/pagedown in the editor, toggle files that are already open

Debugging

F5 One-step jump in
F6 Single-Step Skip
F7 Single Step Back
F8 continue
Ctrl+shift+d display the value of a variable
Ctrl+shift+b setting or removing breakpoints in the current line
Ctrl+r Run To line (super easy to use, can save a lot of breakpoints)

Refactoring

(the shortcut keys for general refactoring are all beginning with alt+shift)
Alt+shift+r Rename a method name, attribute, or variable name (it's my favorite, especially the rename of variables and classes, which can save a lot of labor than a manual approach)
Alt+shift+m the code in a function into a method (which is one of the most common methods of refactoring, especially useful for a lot of mud code)
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 directly extract some magical 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 (more useful function)
Alt+shift+i Merge variables (this may be a bit inappropriate inline)
ALT+SHIFT+V moving functions and variables (not commonly used)
Alt+shift+z reconstruction of Regret medicine (Undo)

Other

Alt+enter displays the properties of the currently selected resource, and the properties of the view file under Windows are this shortcut, which is typically used to view the actual path of the file in Windows
Ctrl+↑ a text editor to roll the line
Ctrl+↓ a text editor to roll the line
Ctrl+m maximize the current edit or view (and vice versa)
Ctrl+o Quick Display OutLine (not open OutLine window of the classmate, this shortcut key is essential)
Ctrl+t quickly displays the inheritance structure of the current class
Ctrl+w Close the current editer (Windows closes the Open dialog box is also this, as well as QQ, will, browser, etc. are)
Ctrl+l text editor go to line
F2 Display ToolTip Description

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.