eclipse shortcut

http://blog.csdn.net/weasleyqi/article/details/7896576


I often use eclipse for development, and I don't know how to walk with shortcut keys. Here are some shortcut keys for you to use flexibly. . .

(Note: The shortcuts marked in red are frequently used shortcuts, sharpening knives will not accidentally chop woodworkers...)

Ctrl+1 Quick Repair (the most classic shortcuts, needless to say)

Ctrl+Shift+O Automatically import the required packages (this is used a lot of times)
Ctrl+D: delete the current line
Ctrl+Alt+↓ Copy the current line to the next line (copy increase)
Ctrl+Alt+↑ Copy the current line to the previous line (copy increase)
Alt+↓ The interaction position between the current line and the next line (especially practical, you can save the first cut and then paste)
Alt+↑ The current line and the upper line interactive position (same as above)
Alt+← Previous edited page
Alt+→ Next edited page (Of course, it is for the above one)
Alt+Enter Display the properties of the currently selected resource (project, or file or file)
Shift+Enter Insert a blank line in the next line of the current line (the mouse can then be moved anywhere in the current line A position, not necessarily the last)
Shift+Ctrl+Enter inserts a blank line in the current line (the principle is the same as the previous one)
Ctrl+Q locates the last edit place
Ctrl+L locates in a certain line (for those with more than 100 programs, there is good news Ctrl+M Maximize the
current Edit or View (press again, vice versa)
Ctrl+/ Comment the current line, press again to uncomment
Ctrl+O Quickly display OutLine
Ctrl+T Quickly display the inheritance structure of the current class
Ctrl+W Close the current Editor
Ctrl+K Refer to the selected Word to quickly navigate to the next
Ctrl+E Quickly display the drop-down list of the current Editor (if the current page is not displayed) Ctrl
+/(keyboard) Collapse all codes in the current class
Ctrl+×(keyboard) Expand all codes in the current class
Ctrl+Space Code assistant completes some code insertion (but generally it conflicts with the input method, You can modify the hotkey of the input method, or you can temporarily use Alt+/ instead)
Ctrl+Shift+E Display the manager that manages all currently opened Views (can choose to close, activate, etc.)
Ctrl+J Forward incremental search (After pressing Ctrl+J, each letter editor you enter provides quick matching to locate a word. If not, it will be displayed in the stutes line that it is not found. When looking up a word, it is especially useful. This function Idea had it two years ago)
Ctrl+Shift+J Reverse incremental search (same as the previous one, but from back to front)
Ctrl+Shift+F4 Close all open Editors
Ctrl+Shift+X Change all the selected text to lowercase
Ctrl+Shift+Y Change all the currently selected text to lowercase
Ctrl+Shift+F Format the current code
Ctrl+Shift+P Position to the matching character (such as {}) (position from the front to the back When , the cursor should be in the matching character, from the back to the front, and vice versa)

The following shortcut keys are commonly used in refactoring, and I like to sort out the ones I like and commonly use (note: the shortcut keys for general refactoring all start with Alt+Shift)
Alt+Shift+R Rename (my own favorite The one I like to use, especially the Rename of variables and classes, can save a lot of labor than manual methods)
Alt+Shift+M Extraction method (this is one of the most commonly used methods in refactoring, especially for a lot of mud Group code is useful)
Alt+Shift+C Modify the function structure (more practical, there are N functions that call this method, modify it once)
Alt+Shift+L Extract local variables (you can directly extract some magic numbers and strings into one Variables, especially when multiple calls)
Alt+Shift+F Change the local variable in the Class into a field variable (a more practical function)
Alt+Shift+I Merge variables (it may be a bit inappropriate to say Inline)
Alt+Shift +V Move functions and variables (not very commonly used)
Alt+Shift+Z Refactored regret medicine (Undo)

editing
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 Copy Ctrl+C
Global Redo Previous Selection Alt+Shift+↓
Global Cut Ctrl+X
Global Quick Fix Ctrl1+1
Global Content Assist Alt+/
Globally select all Ctrl+A
Globally delete Delete
global context information Alt+?
Alt+Shift+?
Ctrl+Shift+Space
Java editor shows tooltip description F2
Java editor selects encapsulated element Alt+Shift+↑
Java editor selects previous element Alt+Shift+←
Java editor selects next element Alt+Shift+→
text Editor Incremental Search Ctrl+J
Text Editor Incremental Reverse Search Ctrl+Shift+J
Global Paste Ctrl+V
Global Redo Ctrl+Y


View
Scope Function Shortcuts
Global Zoom Ctrl+=
Global Zoom Ctrl+ -Window Scope


Function Shortcuts
Key
Global Activate Editor F12
Global Toggle Editor Ctrl+Shift+W
Global Previous Editor Ctrl+Shift+F6
Global Previous View Ctrl+Shift+F7
Global Previous Perspective Ctrl+Shift+F8
Global Next Editor Ctrl +F6
Global Next Perspective Ctrl+F7
Global Next Perspective Ctrl+F8
Text Editor Show Ruler Context Menu Ctrl+W
Show View Menu Globally Ctrl+F10
Show System Menu Globally Alt+-


Navigation
Scope Function Shortcuts
Java Editor Open Structure Ctrl+F3
Open Type Globally Ctrl+Shift+T
Open Type Hierarchy Globally F4
Global Open Statement F3
Global Open External javadoc Shift+F2
Global Open Resource Ctrl+Shift+R
Global Back History Alt+←
Global Forward History Alt+→
Global Previous Ctrl+,
Global Next Ctrl+.
Java Editor Show Outline Ctrl+O
Global Open Type in Hierarchy Ctrl+Shift+H
Global Go To Matching Bracket Ctrl+Shift+P
Global Go To Previous Edit Position Ctrl+Q
Java Editor Go To Previous Member Ctrl+Shift+↑
Java Editor Go To Next Member Ctrl+Shift+↓
Text Editor Go to Line Ctrl+L


Search
Scope Function Shortcuts
Globally Appear in File Ctrl+Shift+U
Globally Open Search Dialog Ctrl+H
Declaration in the
global workspace Ctrl+G Reference in the global workspace Ctrl+Shift+G


Text editing
Scope function shortcuts
Text editor rewrite switching Insert
text editor Scroll up Ctrl+↑
Text editor Scroll down Ctrl+↓


File
Scope Function Shortcuts
Global Save Ctrl+X
Ctrl+S
Global Print Ctrl+P
Global Close Ctrl+F4
Global Save All Ctrl+Shift+S
Global Close All Ctrl+Shift+F4
Global Properties Alt+Enter
Global New Ctrl+N


Project
Scope Function Shortcuts
Global Build Ctrl+B


Source Code
Scope Function Shortcuts
Java Editor Formatting Ctrl+Shift+F
Java Editor Uncomment Ctrl+\
Java Editor Comment Ctrl+/
Java Editor Add Import Ctrl+Shift+ M
Java editor organization import Ctrl+Shift+O
The Java editor uses try/catch blocks to surround the unset, which is too commonly used, so it is listed here, and it is recommended to set it yourself.
It can also be corrected automatically using Ctrl+1.


Run
Scope Function Shortcuts
Global Single Step Return F7
Global Step Skip F6
Global Step Into F5
Global Step Into Select Ctrl+F5
Global Debug Last Started F11
Global Continue F8
Global Use Filter Step Shift+ F5
Global Add/Remove Breakpoint Ctrl+Shift+B
Global Display Ctrl+D
Global Run Last Start Ctrl+F11
Global Run to Line Ctrl+R
Global Execute Ctrl+U


Refactoring
Scope Function Shortcuts
Global Undo Refactoring Alt+ Shift+Z
Global Extract Method Alt+Shift+M
Global Extract Local Variables Alt+Shift+L
Global Inline Alt+Shift+I
Global Move Alt+Shift+V
Global Rename Alt+Shift+R
Global Redo Alt+Shift+ Y

hope to be helpful to everyone. . . . Everyone is working hard on coding. . .


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326441939&siteId=291194637