Eclipse common shortcut keys Daquan _java

Source: Internet
Author: User
Tags lowercase

This article summarizes eclipse's commonly used shortcut keys. Share to everyone for your reference, specific as follows:

1 keys to the most important shortcuts

Code Assistant: Ctrl+space (Simplified Chinese operating system is alt+/)
Quick FIX: Ctrl+1
Word Complement: alt+/
Open external Java document: SHIFT+F2

Display Search dialog box: ctrl+h
Fast Outline:ctrl+o
Open resource: Ctrl+shift+r
Open type: ctrl+shift+t
Show refactoring menu: Alt+shift+t

Position of previous/next cursor: alt+left/right
Prev/Next Member (Member object or member function): Ctrl+shift+up/down
Select the closed element: Alt+shift+up/down/left/right
Delete Row: Ctrl+d
Inserts a row on the current line: Ctrl+shift+enter
Inserts a row below the current line: Shift+enter
Move selected rows up and down: alt+up/down

Organization Import: Ctrl+shift+o

2 positioning

2.1 In-line positioning

End/beginning of line: End/home
Previous/Last Word: ctrl+right/left

2.2 Positioning within the file

Jump to a line: ctrl+l
Up and down scrolling screen: Ctrl+up/down
Prev/Next Member (Member object or member function): Ctrl+shift+up/down
Fast Outline:ctrl+o

2.3 Cross-file positioning

Open statement: F3
Open resource: Ctrl+shift+r
Open type: ctrl+shift+t
To search for a selected element's declaration in workspace: ctrl+g
Search for selected text in workspace: ctrl+alt+g
To search for a reference to a selected element in workspace: ctrl+shift+g
Open Call Hierarchy: Ctrl+alt+h
Quick hierarchies: ctrl+t
Regret: Ctrl+z

2.4 Other

Previous/Next cursor position: alt+left/right
Previous Edit location: Ctrl+q

3 Check

3.1 Lines selected

Select to end of Line/beginning of: Shift+end/home
Select the last/next word: ctrl+shift+left/right

3.2 File selected

Select the closed element: Alt+shift+up
Revert to previous check: Alt+shift+down
Select the next/previous element: Alt+shift+right/left

4 positioning/checking/operation at the same time

Delete Row: Ctrl+d
Delete Next/previous word: ctrl+delete/backspace
Delete to end of line: Ctrl+shift+delete
Inserts a row on the current line: Ctrl+shift+enter
Inserts a row below the current line: Shift+enter
Move selected rows up and down: alt+up/down
Copy selected row: Ctrl+alt+up/down

5 other code-editing class shortcuts

Save: Ctrl+s
Save All: Ctrl+shift+s
Next hit item (after search): Ctrl +.
Note: ctrl+/
Add Import: Ctrl+shift+m
Show shortcut keys help: Ctrl+shift+l
into large/lowercase: ctrl+shift+x/y

6 refactoring

Show refactoring menu: Alt+shift+t
Refactoring-changing method signatures: Alt+shift+c
Refactoring-Moving: alt+shift+v
Refactoring-Renaming: alt+shift+r

7 Editor, view, pivot chart switching

Next Editor: Ctrl+f6
Next view: Ctrl+f7
Next perspective: Ctrl+f8
Maximize Current View or editor: Ctrl+m
Activate Editor: F12

8 Debug

F5:step into (Debug)
F6:step over (Debug)
F7:step return (Debug)
F8:resume (Debug)
F11:debug previous application (Debug)

9 up/down/right/left type shortcut keys

Ctrl
Previous/Last Word: ctrl+right/left
Up and down scrolling screen: Ctrl+up/down

Alt
Position of previous/next cursor: alt+left/right
Move selected rows up and down: alt+up/down
Shift
Select the previous/next character: Shift+left/right
Select the previous line/next line (starting at the current cursor position): Shift+up/down

Ctrl+shift
Prev/Next Member (Member object or member function): Ctrl+shift+up/down
Select the last/next word: ctrl+shift+left/right

Alt+shift
Select the closed element: Alt+shift+up
Revert to previous check: Alt+shift+down
Select the next/previous element: Alt+shift+right/left
Copy selected row: Ctrl+alt+up/down

Ctrl+alt
Copy selected row: Ctrl+alt+up/down

Class F shortcut keys

F2: Show hints/renames
F3: Open the declaration of the selected element
F4: Open the Type inheritance structure of the selected element
F5: Refreshing
F5:step into (Debug)
F6:step over (Debug)
F7:step return (Debug)
F8:resume (Debug)
F11:debug previous application (Debug)
F12: Activating editor

Add:

Ctrl+1 Quick Fix (the most classic shortcuts, you don't have to say more)
Ctrl+d: Delete When moving forward
Ctrl+alt+↓ copy current line to next line (copy increase)
Ctrl+alt+↑ copy current line to previous line (copy increase)
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.)
alt+← the previous edited page
alt+→ the next edited page (for the above article, of course)
Alt+enter displays the properties of the currently selected resource (project, or file or file)
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)
Shift+ctrl+enter inserts a blank line on the current line (principle above)
Ctrl+q positioning to the last edit place
Ctrl+l positioned on a line (for more than 100 of the program people have the Gospel)
Ctrl+m maximizes the current edit or view (and then vice versa)
ctrl+/Note the current line, and then press to uncomment
Ctrl+o Quick Display OutLine
Ctrl+t quickly displays the inheritance structure of the current class
Ctrl+w closes the current editer
Ctrl+k refer to the selected word to quickly navigate to the next
Ctrl+e quickly displays the Drop-down list for the current editer (if the current page is not displayed in bold)
ctrl+/(keypad) collapses all code in the current class
Ctrl+x (keypad) expands all code in the current class
Ctrl+space Code Assistant completes some code inserts (but general and the input method has the conflict, may modify the input method the hot key, may also take up alt+/to replace)
CTRL+SHIFT+E Displays the manager that manages all currently open view (you can choose to turn off, activate, and so on)
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 Stutes line, the search for a word, especially practical, this function idea two years ago)
CTRL+SHIFT+J Reverse incremental lookup (same as above, only from back to front)
CTRL+SHIFT+F4 Closes all open editer
Ctrl+shift+x the currently selected text all sour lowercase
Ctrl+shift+y the text that is currently selected into lowercase
Ctrl+shift+f Format the current code
Ctrl+shift+p navigates to the matching character (for example {}) (when positioned from the front, the cursor is in the match, back to the front, and vice versa)

The following shortcuts are commonly used in refactoring, I like and commonly used to tidy up (note: The general refactoring shortcuts are alt+shift the beginning of the)

Alt+shift+r rename (is my own favorite one, especially the variable and class rename, than manual method can save a lot of labor)
Alt+shift+m Extraction Method (This is one of the most commonly used methods in refactoring, especially for a large pile 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-construction of regret medicine (Undo)

Edit

scope function Shortcut keys
Global Find and replace Ctrl+f
Text Editor Find previous Ctrl+shift+k
Text Editor Find Next Ctrl+k
Global Undo Ctrl+z
Global Replication Ctrl + C
Global Restore Previous selection alt+shift+↓
Global clipping Ctrl+x
Global Quick Fix ctrl1+1
Global Content Assist alt+/
All globally selected CTRL + A
Remove delete globally
Global context information ALT +?
Alt+shift+?
Ctrl+shift+space
The Java Editor displays a tooltip description F2
Java Editor Select encapsulation element alt+shift+↑
The Java editor selects the previous element alt+shift+←
The Java editor selects the next element alt+shift+→
Text Editor Incremental Lookup ctrl+j
Text Editor incremental reverse lookup ctrl+shift+j
Global Paste Ctrl + V
Global Redo Ctrl+y

View

scope function Shortcut keys
Global Amplification ctrl+=
Global Shrink ctrl+-

Window

scope function Shortcut keys
Global activation Editor F12
Global Toggle Editor Ctrl+shift+w
Global previous editor Ctrl+shift+f6
Global previous View Ctrl+shift+f7
Global previous Pivot Chart Ctrl+shift+f8
Global Next editor Ctrl+f6
Global Next View Ctrl+f7
Global Next Pivot Chart Ctrl+f8
The text editor displays the ruler context menu Ctrl+w
Global Display View menu CTRL+F10
Global Display System Menu alt+-

Navigation

scope function Shortcut keys
Java Editor Open Structure ctrl+f3
Global Open Type Ctrl+shift+t
Global Open type Hierarchy F4
Global Open Declaration F3
Global Open External Javadoc shift+f2
Global Open Resource Ctrl+shift+r
Global fallback history alt+←
Global forward History alt+→
The global last one CTRL +,
Global Next Ctrl +.
Java Editor Display outline Ctrl+o
Global open type in hierarchy Ctrl+shift+h
Global go to matching bracket ctrl+shift+p
Go global to previous edit location Ctrl+q
Java editor go to previous member ctrl+shift+↑
Java editor go to next member ctrl+shift+↓
Text editor go to row ctrl+l

Search

scope function Shortcut keys
Global appears in file Ctrl+shift+u
Global Open Search dialog box ctrl+h
Declarations in the global workspace Ctrl+g
References in the global workspace Ctrl+shift+g

Text editing

scope function Shortcut keys
Text Editor overwrite toggle Insert
Roll line ctrl+↑ on text editor
Text editor roll down line ctrl+↓

File

scope function Shortcut keys
Global Save Ctrl+s
Global Print Ctrl+p
Global Shutdown CTRL+F4
Global all Save Ctrl+shift+s
Global all Close Ctrl+shift+f4
Global Properties Alt+enter
Global New CTRL + N

Project

scope function Shortcut keys
Global All Build Ctrl+b

Source

scope function Shortcut keys
Java Editor Format ctrl+shift+f
Java Editor Uncomment ctrl+\
Java Editor Annotation ctrl+/
Java Editor Add import ctrl+shift+m
Java Editor Organization import Ctrl+shift+o
The Java Editor uses try/catch blocks to surround settings that are too often used, so list them here and suggest yourself to set them.
You can also use ctrl+1 automatic correction.

Run

scope function Shortcut keys
Global Single Step Return F7
Global Single Step Skip F6
Global single Step hop into F5
Global Single Step Jump selection Ctrl+f5
Global debugging last started F11
Global Continue F8
Global Use filter Stepping Shift+f5
Global Add/Remove breakpoints Ctrl+shift+b
Global Display Ctrl+d
Global run last started Ctrl+f11
Global Run to row ctrl+r
Global Execution Ctrl+u

Refactoring

scope function Shortcut keys
Global Undo Refactoring Alt+shift+z
Global Extraction Method Alt+shift+m
Global extract local variable alt+shift+l
Global inline Alt+shift+i
Global Mobile Alt+shift+v
Global Rename Alt+shift+r
Global Redo Alt+shift+y

I hope this article will help you with Java programming.

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.