MyEclipse, Eclipse Code Auto complement (associative input) __java

Source: Internet
Author: User
Tags try catch
MyEclipse (Eclipse) of the automatic completion (associative input) is divided into two types, direct prompts and press shortcut key prompts, set the method as follows

One, each input is automatically prompted
Window->preferences->java->editor->content Assist
Then the lower right corner auto activation triggers for Java inside instead
Java Code abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789

So every time I enter the letters, I will automatically prompt.

You can also modify the next auto activation delay to modify the delay of the hint.

Second, use alt+/manual control automatic prompt (recommended)
Window->preferences->general->keys
Find the content Assist, first remove Binding (remove binding), and then Binding (press alt+/)

When you select editing text, OK


Edit

Ctrl+1 Fast Fix (the most classic shortcuts, you don't have to say, you can solve a lot of problems, such as import class, try catch surrounded, etc.)
Ctrl+shift+f Format the current code
Import imports of Ctrl+shift+m add classes
Ctrl+shift+o the import of the Organization class (both the role of ctrl+shift+m, but also can help you remove useless imports, very useful)
Ctrl+y Redo (Contrary to the undo ctrl+z)
alt+/content Assist (how many times you have to save the keyboard beat, too often)
Ctrl+d Delete the current line or multiple lines
Alt+↓ the current line and the following line of interactive position (especially practical, you can save the first cut, then paste)
Alt+↑ the current row and the previous line of interaction position (IBID.)
Ctrl+alt+↓ copy current line to next line (copy increase)
Ctrl+alt+↑ copy current line to previous line (copy increase)
Shift+enter inserts a blank row on the next line in the current row (at which point the mouse can be anywhere in the current line, not necessarily the last)
ctrl+/Note the current line, and then press to uncomment
ctrl+shif+/Annotation Multiple lines
Ctrl+shif+\ Uncomment multiple lines
Select

Alt+shift+↑ Select Package Element
alt+shift+← Select the previous element
alt+shift+→ Select Next Element
shift+← Select characters from cursor to left
shift+→ Select characters from the cursor to the right
Ctrl+shift+← Select the word to the left of the cursor
ctrl+shift+→ Select the word to move the cursor and the edge

The ctrl+← cursor moves to the beginning of the left word, the equivalent of vim B
The ctrl+→ cursor moves to the end of the right word, equivalent to the Vim e search

Ctrl+k refer to the selected word to quickly navigate to the next (if Word is not selected, search last word that used search)
Ctrl+shift+k refer to the selected word to quickly navigate to the previous
Ctrl+j forward Incremental lookup (after pressing CTRL+J, each letter editor you enter provides a quick match to locate a word, if not, it is not found in the status bar, check a word, especially practical, to exit this mode, according to escape construction)
CTRL+SHIFT+J Reverse incremental lookup (same as above, only from back to front)
Ctrl+shift+u lists all rows that contain strings
Ctrl+h Open the Search dialog box
declarations in the Ctrl+g workspace
Reference navigation in the Ctrl+shift+g workspace

Ctrl+shift+t Search class (including engineering and associated third jar packages)
Ctrl+shift+r Search the files in the project
Ctrl+e quickly displays the Drop-down list for the current editer (if the current page is not displayed in bold)
F4 Open Type Hierarchy
F3 jump to the declaration
alt+← the previous edited page
alt+→ the next edited page (for the above article, of course)
Ctrl+pageup/pagedown in the editor, toggle file debugging that is already open

F5 Single Step Hop in
F6 Single Step Skip
F7 Single Step Return
F8 continue
Ctrl+shift+d display the value of a variable
Ctrl+shift+b set or remove breakpoints on the current line
Ctrl+r Run To Line (super easy, can save a lot of breakpoints) refactoring

(the shortcut keys for general refactoring are alt+shift.)
Alt+shift+r Rename a method name, property, or variable name (is my favorite one, especially the variables and classes of rename, than manual method can save a lot of labor)
Alt+shift+m the code within a function as a method (this is one of the most common methods of refactoring, especially if it's useful for a lot of mud code).
Alt+shift+c Modify the function structure (more practical, there are n functions called this method, modify a fix)
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 The local variables in class into field variables (more practical features)
Alt+shift+i Merge variables (this may be a bit inappropriate to say inline)
ALT+SHIFT+V move functions and variables (not commonly used)
Alt+shift+z re-reconstructed regret medicine (Undo) other

Alt+enter displays the properties of the currently selected resource, which is the shortcut key for viewing files under Windows, and is typically used to view the actual path of a file in Windows
ctrl+↑ Text Editor Roll line
ctrl+↓ text Editor roll down line
Ctrl+m maximizes the current edit or view (and then vice versa)
Ctrl+o Quick Display OutLine (do not open the OutLine window of the classmate, this shortcut is essential)
Ctrl+t quickly displays the inheritance structure of the current class
Ctrl+w closes the current editer (this is also the case with Windows Close Open dialog box, as well as QQ, like, and the browser, etc.)
Ctrl+l text editor go to row
F2 Display ToolTip Descriptions, or modify file names

-----------------------------------------------------------------------------------

MyEclipse How to show where a method is invoked

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.