Author: sungo date: 2004/06/16 (3) ◎ Reading instructions: The blue label hot button after colon (:) is the standard hotkey for Eclipse preset. The blank means that Eclipse does not have a hotkey for the project; The red label option represents a common or important hotkey; light pink label options, indicating that the range of the hotkey can be activated. ◎ Hotkey Modification: Window-> Preference-> Workbench-> Keys ◎ FAQ, how does the function of the hotkey does not start? Method 1. Have a hotkey yourself. Method II. The option in the hotkey settings, in fact, most of the menus can be done directly from the menu. ◎ Give all the friends who are watching this article: T55555 In order to take DG2 anniversary, in order to effect his spirit, I decided to contribute my first time, join JavaWorld for the first time for the first time. Have such a long article ... XD. Originally intended 3.0 Release, finishing the hotkey table, but the 3.0 RC series architecture has tended smoothly. Release does not change much, so it will be sorted out. The function listed in the hotkey table, as long as you have actually operated over again, will bring you a great help from the operational Eclipse. -------------------------------------------------- -------------------------------------------------- -------- COMPARE - Compare Copy All from Left to Right (All Copy All) Copy All from Right To Left (All left copy all) COPY from LEFT TO RIGHT (from left to right Copy) COPY from Right To LEFT Select Next Change Select Previous Change CVS - Concurrent Version System Checkout from CVS (Check) Edit - Edit Add Bookmark Add Task Collapse: Ctrl Keyboard Right Digital District '-'
Content Assist (Content Auxiliary - CODE Templetes): Alt / or Ctrl Space
Context Information: Alt ? Or Alt Shift ? Or Ctrl Shift Space
Copy (copy selected text to OS scrapbook): Ctrl C
Custom Encoding Cut (select text): Ctrl X
Default Encoding (using preset) delete (delete selected text): Delete
Expand (program code expansion): Ctrl keyboard right digital zone ' '
Expand all (Program code expansion): Ctrl keyboard right digital zone '*'
Find and replace (find and replace text): Ctrl F
Find next (looking for the next item): Ctrl K
Find Previous (looking for a project): Ctrl Shift K
Incremental Find: Ctrl Jincremental Find Reverse (reverse gradual search): Ctrl Shift J
ISO-8859-1 Encoding (changed coding to ISO-8859-1) Paste (post from OS Clippers): Ctrl V
Quick Diff Toggle (QuickDiff Turning / Off): Ctrl Shift Q
Quick Fix (Fast Kit): Ctrl 1
REDO (redo the last job): Ctrl Y
RESTORE LAST Selection: Alt Shift Direction button '↓'
Revert to Saved Select All (Select All Text): Ctrl A
SELECT Enclosing Element: (Selected Elements) Alt Shift Direction Key '↑'
Select Next Element: Alt Shift Direction Key '→'
Select Previous Element: Alt Shift Direction Key '←'
Shift Left (moving the line to the left) Shift Right (moving the line to the right) SHOW Tooltip Description (Tools in the cursor location display element): F2
System Encoding (Classification Change to System Coding) Toggle Folding (program code folding, expansion feature on / off): Ctrl keyboard right digital zone '/'
Toggle Insert Model (Smart INSERT Mode Turn on / Off): Ctrl Shift INSERT
Undo (recovery previous job): Ctrl Z
US ASCII ENCODING UTF-16BE ENCODING UTF-16EENCODING (Code Change to UTF-16) UTF-16LE ENCODING (UTF-16LE) UTF-16LE ENCODING -8 EnCoding (changed to UTF-8) File - Archive Close: Ctrl W or Ctrl F4
Close All (Close All Archives): Ctrl Shift W or Ctrl Shift F4
EXIT (Close the top window of the screen): Alt F4
(Note: 3.0RC2 does not preset this set of hot keys, but still can still be used.) Export (Open Remarks Menu) MoveT (Mobile Profile) NEW (Open File Establishing Wizard): CTRL N
New menu (display file-> new menu): Alt Shift N
Open External File Open Workspace (Turn on Workspace Settings Window) Print: Ctrl P
Properties (Org.eclipse.ui.File.Properties) (Display file content): Alt Enter
Refresh (rearrange): F5
Rename: F2Revert (Reply to Save) Save (storage): Ctrl S
Save All (Store all files): Ctrl Shift S
Save as (Save new file) Help - Description About (on) Help Contents (Open Eclipse Description File) Tips and tricks (Open Tips & Skill Description Page) WECLOME (Open Welcome Page) NaviGate - Guide Back Post Guide) Backward History (moving backward in the editor map): Alt arrow keys '←'
Forward History (moving forward in the editor navigation process): Alt arrow keys '→'
Go INTO (within the selected directory) Go to line (moving to a line): Ctrl L
Go to matching bracket (moving the cursor to symmetrical square brackets): Ctrl Shift P
Go to next member (moving to the next member): Ctrl Shift Direction button ''
Go to Package (moving to the kit) Go to Previous MEMBER: Ctrl Shift direction button '↑'
Go to Resource (moving to resources) Go to Type (moving to the category) Last Edit LoAction (moved to the previous editing location): Ctrl Q
Next (moving to the next indicator element): Ctrl .
(Note: Element type can be set by Toolbar's next annotation.) Open Call Hierarchy: Ctrl Alt H
Open declaration (Browse the Java element selected): F3
(Note: Effect is equal to Ctrl mouse left mouse button selection.) Open External Javadoc (Open External Javadoc): Shift F2
Open resource (Turn on Resource Pickup dialog): Ctrl Shift R
Open structure (the structure of the selected element): Ctrl F3
Open Super Implementation (on the actuated in the super type) Open Type: Ctrl Shift T
Open Type Hierarchy (open class ": f4
Open Type in hierarchy (open category in the category class): Ctrl Shift H
Previous (moving to the previous indicator element): Ctrl ,
(Note: Element type can be set by Toolbar's PreviOUS Annotation inverted triangular illustration.) Quick Hierarchy (Displayed in a floating mode on the editor): Ctrl T
Quick Outline (in floating ways to display the profile window on the editor): Ctrl O
Show In Menu (Display options available to Show In menu): Alt Shift W
SHOW IN PACKAGE EXPLORER (Displays the selected element in the Suite Browser) UP (Navigation Previous Floor) Project - Forum BUILD All (Building all items): Ctrl BBUILD CLEAN (Clear Project) Build Project (Built) Close Project (Close Project) Generate Javadoc (Producing Javadoc) Open Project (ON Project) Properties (ONPROPERTIES) (Open Project Properties Settings Window) Rebuild All (Rebuild All Projects) Rebuild Project Re-establish project) Repeat Working Set Build (Note: Build Automatically can be used when it is closed.) Refactor - Java (Reconstruction - Java) Change method Signature (Change method): Alt Shift C
Convert Anonymous Class To Nested (convert anonymous category into a nest category) Convert local variable to field: Alt Shift f
EncapSulate Field (Package Field: Setting your getting and setting methods for the field, and uses these methods to access fields) Extract constant (capture constant: draw the number to the new Static field, and use the new Static field) Note : <- Start-> Reconstructs the number 10 by Extract Constant ...
Public class test {??? public static void main (string [] args) {??????? INT x = 10; ???}}
It will become the following program code: (constant field name, can be freely set in the reconstruction.)
Public class test {??? public static final int Ten = 10; ??? public static void main (string [] args) {??????? int x = ten; ???}}
Note: <- end-> extract interface (captured as an interface: Take the method within the original category into the new interface, the original category will act on the interface) (Note: The new interface will form a new * .java Set. If this function is performed in Interface, the old interface will inherit the new interface.) Extract local variable (capture zone variable: capture the number as a new area variable): Alt Shift L
EXTRACT METHOD (Capture Method: Select the representation of the selected representation into a new method): Alt Shift M
Generalize Type (Category Strike Category Motion) Inline (included in constant, zone variable, or method): Alt Shift i
Introducture Factory (using a proxy: Using the method to get the constructive) Note: <- start-> If the program code is reconstructed by the Introduce Factory, TEST construction ...
Public class test {??? private int number; ??? Test (int x) {??????? Number = x; ???} ??? public static void main (string [] args) {? ?????? system.out.println (New Test (5) .Number); ???}} will become the following program code:
Public class test {??? private int number; ??? public test (int x) {??????? number = x; ???} ??? public static void main (String [] args) { ??????? system.out.println (CreateTest (5) .Number; ???} ??? public static test cretetest (int x) {??????? Return New Test (x) ; ???}}
Note: <- end-> Introduce Parameter (using parameters: Transfer zone variables) Note: <- start-> Refactoring the number 5 after INTRODUCE PARAMETER ...
Public class test {??? public static void main (string [] args) {??????? INT x = 5; ???}}
It will become the following code:
Public class test {??? public static void main (string [] args, int FIVE) {??????? INT x = FIVE; ???}}
Note: <- End-> Move MEMBER TYPE TO New File (Moves Category Members to a new file) Move - Refactoring (Mobile - Reconstruction: Move the selected element to new location): Alt Shift V
PULL UP (Pushing Category Members
Refactor Quick Menu (Reconstructive Quick Menu in Editing Zone): Alt Shift T
Rename - Refactoring (Renames - Reconstruction: Rename the elements selected, category name, area variable name, etc ...): Alt Shift R
Undo - Refactoring (Recovery - Reconstruction: Reconstruction of the previous recovery): Alt Shift Z
Use supertype where possible dialog box.) ◎ Supplementary naming rules: (Reconstructing this rule when naming this rule, Eclipse will warn, although you can not warn, but this is a good style .) 1. Interface name: At the beginning. 2. Regional Variable (LOCAL Variable) Name: At the beginning. 3. The Name of the Public Static Final INT ...: All uppercase. Run / Debug - Execute / Include Add Class Load Breakpoint (Add a Category Load Broken Point)) Add Java Exception Breakpoint (Add a Java Abnormal Status Breakpoint) Debug ... Last Launched (in the final startup job]: f11display (org.eclipse.jdt.debug.ui.commands.display) (display): Ctrl Shift D
(Note: This instruction uses the "Display" inspection screen when the oscillative is suspended, and the result of the selected representation is evaluated under the environment definition of the stack box or variable of the execution.) Execute (execution: Open execution start Configuration dialog): Ctrl U
Inspect (observation): Ctrl Shift i
(Note: This instruction uses the "Representation" screen check screen when the intensive is suspended, and the result of the selected representation or variable is displayed under the environment definition of the stack box or variable of the execution.) Profile Launched ( Overview of the last job) Resume (continue to execute): F8
Run LaSt Launched (quickly perform the most recent startup job in execution mode): Ctrl F11
Run LaSt Launched External Tool (External Tool for Perform the previous start) Run to line (executed to the specified line, can be suspended without setting breakpoint): Ctrl R
Skip all breakpoints (in the case of unclear, do all breakpoints) STEP INTO (enter the sub-process): F5
Step INTO Selection (enter the currently selected statement): Ctrl F5
Step over (Skip): F6
Step Return (Subject): F7
SUSPEND TERMINATE TOGGLE BREAKPOINT (new / removed, breakpoint): CTRL SHIFT B
Toggle Method Breakpoint (New / Remove, Method Breakpoint) Toggle STEP Filters: Shift F5
Toggle WatchPoint (New / Remove, Field Monitor Point) Search - Search for Declaration In Hierarchy (Declaration of selected elements in its class) Declaration in project (announcement of selected elements in the project) Declaration in Working Set (declaration of selected elements in the work) Declaration in Workspace (see the announcement of selected elements in the workspace): Ctrl g
Exception Occurrences File Search File Search (Search Search page of the Search Dialog) IMPLEMENTORS IN Project (Search for the actor of the selected interface in the project) Implementors in Working Set (the actor of the selected interface) Implementors in Workspace (Search for the active in the workspace) Occurrences in file (all the appearances of the selected elements in its declaration): Ctrl Shift UOPEN Search Dialog (Open Search Dialog): Ctrl h
Read Access in hierarchy (reading a reference for selected elements in its class) Read Access in project (see reading reference in the project) Read Access in Working Set (Search for selected elements in the work Read Reference) Read Access in Workspace (see the reading reference for selected elements in the workspace) References in hierarchy (see the reference in its class) References in project (search for selected elements in the project) Reference) References in working set (Reference to search for selected elements in the work) References in Workspace (see the reference for the selected element in the workspace): Ctrl Shift g
Referring Tests Write Access in Hierarchy (Search for the write reference for the selected element in its class) Write Access In Project (write reference for the selected element in the project) Write Access in Working Set Concentrate on the write reference of the selected element) Write Access in Workspace (Search for the write reference for the selected element in the workspace) Source - program code Add block Comment Get up): CTRL Shift /
Add Constructors from Superclass (adds a construct from the parent category) Add import (for the category of the category): Ctrl Shift M
Add Javadoc Comment: Alt Shift J
Comment (Note) Externalize Strings (Open "External Strings" Elf) Find Strings To Externalize (String To Externalized) Format (Program Code Automatic Typing): Ctrl Shift F
Format Element Generate Constructor Using Fields (using fields to generate a constructive) Note: <- start-> As shown in the following program code, select the field name Money and passed through the Generate Constructor Using Fields Directive ...
PUBLIC CLASS TEST {??? Int Money; ??? public static void main (string [] args) {???}}
It will become the following code:
PUBLIC CLASS TEST {??? Int Money; ??? public test (int money) {??????? this.money = Money; ???} ??? public static void main (string [] args {???}}
Note:
<-END->
Generate delegate Methods
Enable the "Delegation Method" dialog box, the delegation method for the new type field)
Generate Getters and setters
Open "production
Getter
versus
Setter
"Dialog, you can automatically use the field
set up
Getter
with
Setter
method
)
Indent line
Single row, it will follow
Formatter
Set format
)
:
Ctrl i
Mark Occurrences
Labeling event
)
:
Alt Shift O
Organize imports
Organization
)
:
Ctrl Shift O
(
Note: This is a very convenient function, and it is easy to explain the time: Suppose we play in the program,
JFRAME SRC;
Not
Import
any
Swing
Category, at this time
Eclipse
There will be a wrong warning, use the red bottom line.
JFrame
According to this, just press
under
Ctrl Shift O
,
Eclipse
It will be automatically:
Import javax.swing.jframe;
Add it to the program code.
)
Override / Implement Methods
Open "override
/
Home Method Dialog, overwritten or implemented methods in the current category
)
REMOVE BLOCK Comment
Remove multi-line annotation
/ ** /)
:
Ctrl Shift /
REMOVE OCCURENCE ANNOTATIONS
Remove event bookmark
)
:
Alt Shift U
Sort MEMBERS
Sort member
)
Source Quick Menu
Show in the editing area
Source
Quick menu
)
:
Alt Shift S
Surround with try / catch block
In
TRY / CATCH
Blocks cover the selected text
)
Toggle Comment
Plus a single line annotation
/
Cancel a single line annotation
)
:
Ctrl /
or
Ctrl 7
or
Ctrl Shift C
Uncomment
Cancel
)
◎ Supplement, SOURCE hides the hotkey:
Zhift Right (
Shift to the right, increase the contraced level of the currently selected word line
)
:
Tab
2.SHIFT LEFT
Shift left, reduce the contraced level of the currently selected word line
)
:
Shift Tab
Team - Team
SYNCHRONIZE
Synchronization
)
Text Editing - Text Editor
Claer Mark
Clearance tag
)
Copy Lines
Copy the text selected to a new line
)
:
Ctrl alt
Arrow key
'
↓
'
Cut line
Cut a single line writing
)
Cut to beginning of line
Cut the text, the range is the beginning of the single line
)
Cut to End of Line
Cut the text, the range is selected to the end of the single line
)
Delete line
Delete a single line
)
:
Ctrl D
DELETE NEXT
Delete the next line
)
Delete Next Word
Delete the next group
)
:
Ctrl delete
Delete previous
Delete the front line
)
Delete Previous Word (Delete the previous group
)
:
Ctrl Backspace
Delete to Beginning of Line
Delete text, the range is the beginning of a single line
)
DELETE TO End of Line
Delete text, range to choose the end of a single line
)
Duplicate Lines
Copy the text selected to a new line
)
:
Ctrl alt
Arrow key
'
↑
'
INSERT LINE Above Current Line
Insert a new line in this line at the cursor
)
:
Ctrl Shift ENTER
Insert Line Below Current Line
Insert a new line below this line at the cursor
)
:
Shift enter
Line Down
Move the cursor down
)
Line End
Move to the end of the row
)
Line Start
The cursor is moving to the beginning of the line
)
Line Up
The cursor moves up
)
Move Lines Down
Move this line writing down
)
:
Alt
Arrow key
'
↓
'
Move Lines Up
Move the line text up
)
:
Alt
Arrow key
'
↑
'
Next column
Cursor moved to the next column
)
Next Word
Move to the next group
)
:
Ctrl
Arrow key
'
→
'
Page Down
Move to next page
)
Page Up
Move to the previous page
)
Previous Column
Move to the previous column
)
Previous Word
Move to the previous group
)
:
Ctrl
Arrow key
'
←
'
Scroll Line Down
Roll down
)
:
Ctrl
Arrow key
'
↓
'
Scroll Line Up
Roll up
)
:
Ctrl
Arrow key
'
↑
'
SELECT LINE DOWN
Select the next line
)
Select Line End (
Select to the end of the text
)
Select Line Start
Choose to the beginning of the text
)
SELECT LINE UP
Select a line
)
Select Next Column (
Select the next column
)
Select Next Word
Select the next group
)
:
Ctrl Shift
Arrow key
'
→
'
SELECT Page Down
Select the next page
)
SELECT PAGE UP
Select the previous page
)
Select Previous Column (
Select the previous column
)
SELECT Previous Word
Select the previous group
)
:
Ctrl Shift
Arrow key
'
←
'
SELECT TEXT END (
Select the end of the text editor
)
SELECT TEXT START
Select the beginning of the text editor
)
SELECT Window End
Select to the end of the window
)
SELECT WINDOW START
Choose to the beginning of the window
)
SET MARK
Set tag
)
Swap mark
Exchange mark
)
TEXT END (
Cursor moving to the bottom of the text editor
)
Text Start
Move to the top of the text editor
)
Toggle Overwrite
/
insert
Mode selection
)
:
Insert
To Lower Case
Transfer the selected English to lowercase
)
:
Ctrl Shift Y
To Upper Case
Transfer the English word to uppercase
)
:
Ctrl Shift X
WINDOW END
Move the cursor to the end of the window
)
Window start
Move the cursor to the beginning of the window
)
Views --view
Ant
Open
Ant
View window
)
Bookmarks
Open book sign check window
)
Breakpoints
Open breakpoint view window
)
Classic Search
Open the traditional search view window
)
CONSOLE
Open the main console search window
)
CVS Annotate
Open
CVS Annotate
View window
)
CVS Editors
Open
CVS Editor
View window
)
CVS repositories
Open
CVS repositories
View window
)
CVS Resource History
Open
Cvs Resource History
View window
)
Debug
Open the error check window
)
Display (org.eclipse.jdt.debug.ui.displayView)
Open the error
-
Show viewing window
)
Error log
Open the error record view window
)
Expressions
Open the error
-
Indicated view window
)
Java Call Hierarchy
Open
Call hierarchy
View window
)
Java Declaration
Open the announcement window
)
Javadoc
Open
Javadoc
View window
)
Java MEMBERS
Turn on Category Members Viewing Window
)
Java package explorer
Open the suite browser
)
:
Alt Shift Q, P
Java packages
Open
Java
Suite view window
)
Java Projects
Open
Java
Project View window
)
Java Type Hierarchy
Open Class Class Strike View Window
)
:
Alt Shift Q, T
Java Types
Open
Java
Category View window
)
Junit
Open
Junit
View window
)
Memory
Open the error
-
Memory check window
)
Navigator
Open the guide
)
Outline
Open out the window
)
:
Alt Shift Q, O
Plug-in Dependencies
Open
Plug-in Dependencies
View window
)
Plug-in registry
Open
Plug-in registry
View window
)
PLUG-INS
Open
Plug-ins
View window
)
PROBLEMS
Open the problem view window
)
:
Alt Shift Q, X
PROGRESS
Open execution schedule view window
)
Properties (org.eclipse.ui.views.property/sheet) (
Open Properties Viewing Window
)
REGISTERS
Open the error
-
Cache View window
)
Search
Open Search View Window
)
:
Alt Shift Q, S
SYNCHRONIZE
Turn on the synchronization search window
)
:
Alt Shift Q, Y
Tasks
Open job search window
)
Threads and Monitors
Open the error
-
Perform a lookup window
)
Variables
Open the error
-
Variable view window
)
◎ Supplement: Views on the Views View window:
Window-> show view-> other
.
Window - Window
Activate editor
Startup editor
)
:
F12
Close All Perspectives
Close all views
)
Close Perspective
Close view
)
Customize Perspective
Self-order view
)
Hide Editors
Hide editor
)
Lock The Toolbars
Lock tool column
)
Maximize Active View Or Editor
Maximize the editing area
)
:
Ctrl M
Next editor
Switch to the next editor
)
:
Ctrl F6
Next Perspective (NEXT PERSPECTIVE)
Switch to the next view
)
:
Ctrl F8
Next View
Switch to the next view
)
:
Ctrl F7
Open Editor Drop Down
In the editing area, display the fast switch editor menu in the editing area
)
:
Ctrl E
Pin Editor
Fixed editor
)
Preferences
Open preference setting
)
Previous Editor
Switch to an editor
)
:
Ctrl Shift F6
Previous Perspective
Switch to the previous view
)
:
Ctrl Shift F8
PreviOSVIEW
Switch to the previous view
)
:
Ctrl Shift F7
RESET PERSPECTIVE
Reset view
)
Save Perspective As ("SAVE PERSPECTIVE AS
Store as new view
)
Show Ruler Context Menu
Display the content menu of the ruler
)
:
Ctrl F10
Show successd element only
Only the program code for the selected element
)
Show System Menu
Display system menu
)
:
Alt -
Show View Menu
Display view menu
)
:
Ctrl F10
Switch to editor
Switch to editor
)
:
Ctrl Shift E