Eclipse Common shortcut keys

Source: Internet
Author: User
Tags try catch

Type

Shortcut keys

Describe

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 surrounded, etc.)

Ctrl+shift+f

Formatting the current Code

Ctrl+shift+m

To add import imports for a class

Ctrl+shift+o

Import imports of organizational classes (both Ctrl+shift+m and can help you remove useless imports, 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 following line of interaction (particularly practical, can be omitted first cut, then pasted)

Alt+↑

The current line and the previous row interaction position (IBID.)

Ctrl+alt+↓

Copy the current row to the next row (copy incremented)

Ctrl+alt+↑

Copy the current line to the previous row (copy 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 cancel the comment

Choose

Alt+shift+↑

Select Encapsulated Element

alt+shift+←

Select Previous Element

alt+shift+→

Select the next element

shift+←

Select a character from the cursor at the left

shift+→

Select a character 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 edge

Move

ctrl+←

The cursor moves to the beginning of the word on the left, the equivalent of Vim's B

ctrl+→

The cursor moves to the end of the right word, the equivalent of Vim's E

Search

Ctrl+k

Click the selected word to quickly navigate to the next (if Word is not selected, search for Word last 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 navigate to a word, if not, the status bar shows no found, 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

Claims in the workspace

Ctrl+shift+g

References in the workspace

Navigation

Ctrl+shift+t

Search for classes (including engineering and associated third jar packages)

Ctrl+shift+r

Search 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+←

Previous edited page

alt+→

The next editing page (of course, for the above article)

Ctrl+pageup/pagedown

In the editor, toggle files that are already open

Debugging

F5

Single-Step jump in

F6

Single-Step Skip

F7

Single Step Back

F8

Go on

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 to use, can save a lot of breakpoints)

Refactoring

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

Extracting code from 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 magic 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 might be a bit inappropriate inline)

Alt+shift+v

Move 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, usually used to view the actual path of the file in Windows

Ctrl+↑

Scroll lines on text editor

Ctrl+↓

The text editor scrolls the line

Ctrl+m

Maximizes the current edit or view (and vice versa)

Ctrl+o

Quick Display OutLine

Ctrl+t

Quickly display the inheritance structure of the current class

Ctrl+w

Close current Editer

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.