My Eclipse shortcut key.

Source: Internet
Author: User

The so-called "工欲善其事 its prerequisite", the program written more, for the shortcut keys always have some special preference. In many editors, Eclipse is more and more familiar.

Most commonly used (and most beloved:))

Ctrl + ' : auto-complete prompt. This shortcut is my own set. Eclipse defaults to CTRL+SAPCE, which conflicts with IME. This thing is very powerful, in addition to prompt method, but also support automatic completion of the prompt. For example: Enter a for after input shortcut key, can prompt for the method of several forms, in order to complete automatically. Sysout is usually used more often. Enter this when you can't remember something.

alt+← (→): Before (after) an edited page

alt+x: Run the program that was last run. Also own set, eclipse default is CTRL+F11, this use is too awkward, to two hand, also easy to press wrong, so set up this. The favorite when debugging a program.

ctrl+alt+h : Used for a method, displays the call tree of the method, which is displayed in the calls Hierarchy view. There are two views, one is the actual method that invokes the current method, and what other methods are called by the current method. The former uses the most. It is very convenient to query the calling relationship of a program method.

F3 : View the definition of an object. Press and hold CTRL as you click on the object.

ctrl+o : Displays a list of methods for the current class. can be filtered according to the input.

ctrl+q : Jumps to the last edited position. This is also a good stuff.

ctrl+k : Find Next with the selected word.

ctrl+shift+k : Finds the previous with reference to the selected word.

ctrl+d : Deletes the current row.

ctrl+alt+↓ (↑): Copy the current line to the next (top) row

ctrl+l : Navigate directly to a row

ctrl+e : Displays a list of files that have been opened and can be filtered according to the input.

ctrl+shift+o (M): Automatic package import. M import to a single missing package, O import all the missing packages for the current class.

ctrl+/ : Add/Remove Comments.

ctrl+1 : Bug fixes suggest some workarounds for current issues.

ctrl+shift+f : Automatic layout of program code. You need to select a block of code before use, the simplest use is to use this after Ctrl + A.

alt+shift+r : Rename. is a very powerful kind, can be used for classes, variables, etc., in addition to renaming the current object, will also be the current object reference to the appropriate place to rename.

alt+shift+j : Add comments. Different annotation templates are automatically generated depending on the location (class, method).

generally used in

ctrl+t : Shows the inheritance structure of the current class, which is useful to find the implementation class of the interface, especially when:)

ctrl+j : Forward incremental lookup.

ctrl+shift+p : Navigates to the matching character for. such as (). Matches {}, and so on.

alt+shift+↑ : Select the encapsulated element. You can select this word by using it anywhere in a word.

alt+↓ (↑): The upper and lower lines are interchanged.

ctrl+shift+x (Y): Writes the currently selected text to a large (small)

Ctrl + (Shift) +w : Close the current (All) edit window

ctrl+m : Maximizes the editing window.

Ctrl+f6 : You can pop up the menu, which lists the editing windows that can be toggled. Similar to Ctrl+e. But it's a direct-positioning editing window.

Ctrl+f7 : general view toggle.

Ctrl+f8 : main view switch.

ctrl+shift+g: Search for references in the workspace.

ctrl+h : Opens the search box.

F4 : Open type hierarchy

Used to be my main use of some, if you have any comments welcome communication ~ Refactoring of the shortcut keys for individuals to use less. There's no writing here.

My Eclipse shortcut key.

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.