An Eclipse shortcut key encyclopedia for referencing multiple site collections _ Application Tips

Source: Internet
Author: User
Tags lowercase

1. Common shortcut keys
(1) Ctrl+space
Description: Content Assistant. Provide tips on methods, variables, parameters, Javadoc, etc., to be transported in a variety of occasions, in short, when you need to be prompted to press this shortcut key.
Note: Avoid switching settings for Input method conflicts with this setting

(2) Ctrl+shift+space
Description: Variable hint
(3) ctrl+/
Description: Add/Remove//comment, in eclipse2.0, remove annotation as ctrl+\

(4) ctrl+shift+/
Description: Add/*/comment

(5) Ctrl+shift+\
Description: Eliminate/*/comment

(6) Ctrl+shift+f
Description: Automatically format code

(7) Ctrl+1
Description: Change the name of the variable in the source code in bulk, and it can also be used on catch blocks.

(8) Ctril+f6
Description: Interface Switching

(9) Ctril+shift+m
Description: Find the package you need

(10) Ctril+shift+o
Description: Automatically introduce the required package

(11) Ctrl+alt+s
Description: Source code to the shortcut menu. The Generate getters and setters and surround with Try/catch
Block is more commonly used. It is recommended to add them as shortcut keys. Shortcut keys set in Windows->preferences->workbench->keys

2. List of shortcut keys

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+x
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

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+x 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

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.