"Go" personal most commonly used eclipse shortcut keys

Source: Internet
Author: User

Record the shortcut keys you use most often in eclipse:

In fact, on-line summary of more is that they record their usual most immediate benefit of some of the shortcut keys.

1, shift+ alt+z (just learned):

Condition: Select a section of code

The right-click menu pops up and you can enjoy the convenience of shortcut keys.

2. ALT + Direction key

ALT + up and DOWN ARROW keys: Moves the line of the cursor.
CTRL + AlT + up and DOWN ARROW keys: Copy the line where the cursor is located.

ALT + LEFT and RIGHT ARROW keys: Returns where the last cursor was.

is the shortcut key for these two small icons in eclipse.
You will be able to understand the convenience of this shortcut when you have a few buttons that you normally use.

3. Alt+shift+r: Renaming

Rename the variable or direction.
Condition: Select a variable name or method name.

4, Alt+shift+m: Extraction method

Select a piece of code and extract it as a method. The code block can be cleverly selected to automatically generate the method with parameters.
How convenient AH.

5. Alt+shift+l: Extracting variables

And extraction methods are similar.

6, Shift+enter and Ctrl+shift+enter

Shift+enter: Inserts a blank line below the line where the cursor is located.
Ctrl+shift+enter: On the contrary.

7, Ctrl + 1

First write a method name, for example: int i = Method ("string");

If this method does not, the method is automatically generated with ctrl+1: The return type of the int type is automatically generated, and a string parameter.

How convenient AH.

8, Ctrl+k

Jump directly to the next occurrence, and vice versa: ctrl+shift+k

Usage Scenario: Select a variable or method name

9. Alt+shit+o Open or close the prompt for the selected variable or method

Usage Scenario: Select a variable or method name

10, Ctrl+shift+g

Search for all the places in the project where the selection unit is used

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.