Eclipse Common shortcut keys

Source: Internet
Author: User

Eclipse Common shortcut keys
Shortcut key Description
Edit
Ctrl+1
Quick fix (the most classic shortcuts, you don't have to say, you can solve a lot of problems, such as import class, try
Catch bracketing, etc.)
Ctrl+shift+f formatting of the current code
Ctrl+shift+m adding import imports for classes
Ctrl+shift+o
Import imports of the Organization class (both Ctrl+shift+m and can help you remove useless imports,
Very 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
Refer to the selected word to quickly navigate to the next (if Word is not selected, the search was last used
of Word)
Ctrl+shift+k the selected Word quickly navigates to the previous
Ctrl+j
Forward incremental lookup (after pressing CTRL+J, each letter editor you enter provides a quick match to navigate to a
A word, if not, is displayed in the status bar is not found, check a word, especially useful, to quit this
mode, built by Escape)
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)
Is 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 for variables and classes.)
Rename, which can save a lot of labor than a manual method)
Alt+shift+m
Extracting code from a function is one of the most common methods in refactoring, especially for a large
Heap Mud Regiment Code useful)
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 magic numbers and strings into a variable, especially multiple calls
of the time)
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 the shortcut key, which is typically used to
To view the actual path of a 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 Close Open dialog box is also this, there are QQ, will, browser
etc.)
Ctrl+l text editor go to line
F2 Display ToolTip Description

Eclipse Common 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.