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 need to be hot key; the red label option represents a common or important hotkey; TEAL color label Option indicates 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 functions listed in the hotkey table, as long as you have all actually operated over, it will bring you a great help on your operational Eclipse.
-------------------------------------------------- -------------------------------------------------- ---------
Compare - Compare Copy All from Left to Right (all copy to right)
Copy all from right to leave Left (all left copy all)
Copy from Left to Right (copy right by left)
Copy from Right to Left (copy to right left)
SELECT Next Change (select the next change)
Select Previous Change Change (selected one change)
CVS - Concurrent Versions System (version control system)
Checkout from CVS (check by CVS)
Edit - Edit Add Bookmark (new bookmark)
Add Task (new homework)
Collapse (program code fold): Ctrl keyboard right digital zone '-'
Content Assist (Content Auxiliary - Code Templetes Startup): Alt / or Ctrl Space
Context Information: Alt ? Or Alt Shift ? Or Ctrl Shift Space
Copy (Copy Selection Text to OS Scrapbook): Ctrl C
Custom Encoding (self-subscription)
CUT (Cut the text and add the text): Ctrl x
Default Encoding (using preset encoding)
Delete (Delete the selected text): delete
Expand (program code expansion): Ctrl keyboard right digital zone ' '
Expand All Expand: Ctrl Keyboard Right Digital District '*'
Find next (looking for the next item): Ctrl K
Find Previous (looking for a project): Ctrl Shift K
Incremental Find: Ctrl J
Incremental Find Reverse: Ctrl Shift J
ISO-8859-1 Encoding (changed coding to ISO-8859-1)
Paste (Post from OS Clip Art): 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 (Reply to Save)
SELECT All (Select All Text): Ctrl A
SELECT Enclosing Element:
(Selecting elements) Alt Shift arrow key '↑'
Select Next Element: Alt Shift Direction Key '→'
Select Previous Element: Alt Shift Direction button '←'
Shift left (move the line to the left to move a zone)
Shift Right (moving the line to the right to move a zone)
Show Tooltip Description (Tool Tips for Cursor Location Display Elements): F2
System encoding (changed coding to system encoding)
TOGGLE FOLDING (program code folding, expansion ": 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 (Change Coding to ASCII)
UTF-16BE ENCODING (changed to UTF-16BE) UTF-16 EnCoding (change Code to UTF-16)
UTF-16LE ENCODING (changed coding to UTF-16LE)
UTF-8 Encoding (change coding 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 floor window): Alt F4
(Note: 3.0RC2 does not preset this set of hot keys, but still can be used.)
EXPORT
IMPORT (turn on a menu)
MOVE (mobile file)
NEW (Open file establishing wizard): Ctrl n
New menu (display file-> new menu): Alt Shift N
Open External File (Open External Archives)
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: F2
Revert (Reply to the stored)
Save: Ctrl S
Save All (Store all files): Ctrl Shift S
Save as (Save new file)
Help - Description About (on the dialog)
Help Contents (Open Eclipse Description Document) Tips and tricks (on the Tips and Skills Description Page)
WECLOME (open welcome page)
NaviGate - Guide Back (backward guide)
Backward History (moving backwards in the editor map): Alt arrow keys '←'
Forward (Forward Guide)
Forward History (moving forward in the editor map): 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 bracket): Ctrl Shift P
Go to Next MEMBER: Ctrl Shift Direction button '↓'
Go to Package (moving to the kit for package explorer)
Go to Previous Member (moving to the last Member): Ctrl Shift Direction button '↑'
Go to Type (moving to the category for package explorer)
Last Edit LoAction (moving to the previous editing location): Ctrl Q
Next (moving to the next indicator element): Ctrl .
(Note: The element type can be set by Toolbar's NEXT ANNOTATION.)
Open Call Hierarchy: CTRL Alt H
Open declaration (browse selected Java elements): F3
Open External Javadoc (Open External Javadoc): SHIFT F2
Open Resource (Open Resource Pieces Dialog): Ctrl Shift R
Open structure (Display the structure of the selected element): Ctrl F3
Open Super Implementation (Enter the actuator in the super type)
Open Type (open category): Ctrl Shift T
Open Type Hierarchy (Open Class Class Display Window): F4
Open Type in hierarchy (open category in the category): Ctrl Shift H
Previous (moving to the previous indicator element): Ctrl ,
(Note: The element type can be set by the Toolbar's PreviOUS Annotation.)
Quick Hierarchy (Displayed in a floating way on the editor): Ctrl T
Quick Outline (display the profile window on the editor): Ctrl O
Show In Menu (Display Options available for the current Show In menu): Alt Shift W
Show In Package Explorer (displays the selected element in the suite browser)
Up (Guide the previous layer)
Project - Project BUILD ALL (Building all items): Ctrl B
Build Clean (Clear Project)
Build Project (Built)
Close Project
Generate Javadoc (generating javadoc)
Open Project (Open Project)
Properties (ORG.ECLIPSE.UI.Project.properties) (Open Project Properties Settings Window) Rebuild All (re-establish all items)
Rebuild Project (re-project)
Repeat Working Set Build (Repeat the project set) (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 neo category)
Convert local variable to field (convert zone variable into field): Alt Shift F
Encapsulate Field (Package Field: Establishing a getting and setting method for the field, and uses only these methods to access the field)
Extract constant (capture constant: capture the number to the new Static field and use the new Static field)
Note: <- start->
If the following program code reconstructs the number 10 after 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 firm 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 file. If this function is executed in Interface, the old interface will inherit the new interface.)
Extract local variable (captured zone variable: capture numbers for new area variables): Alt Shift L
EXTRACT METHOD (Capture Method: Selecting the selected representation into a new method): Alt Shift M
Generalize Type (Category Category Category Motion) You can replace the superclass
Inline (included in constant, zone variables, or methods): Alt Shift i
Introducture Factory (adopted by agents: Using the method to get the constructive)
Note: <- start->
If the program code is reconstructed after INTRODUCE FACTORY ...
Public class test {private int number; test (int x) {Number = x;} public static void main (string [] args) {system.out.println (new test (5) .Number);}}
It will become the following 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 (int x) {return new test (x);}} Note: <- end->
Introduce Parameter (using parameters: transfers the zone variable to parameter mode)
Note: <- start->
If the following program code reconstructs 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 = file;}}
Note: <- end->
Move MEMBER TYPE to New File (move the category member to a new file)
Move - Refactoring (Mobile - Reconstruction: Move the selected elements to new location): Alt Shift V
PULL UP (Pushing Category Members
Push Down (Pushing Category Members (Fields & Methods) into the subcategory of categories)
Redo - Refactoring (Reduction - Reconstruction: Reduction Previous Reconstruction): Alt Shift Y
Refactor Quick Menu (Reconstructing Quick Menu in Editing Zone): Alt Shift T
Rename - Refactoring (Rename - Reconstruction: Rename the elements selected, category name, area variable name, etc ...): Alt Shift R
Undo - Refactoring (Recovery - Reconstruction: Reconstruction of the previous time): Alt Shift Z
Use SuperType WHERE POSIBLE (Starting the Parent Class Identification "Reactive dialog box.)
◎ Supplementary naming rules: (When reconstructing this rule is named, Eclipse will warn,
Although it is a warning, it 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 - Execution / Error
Add Class Load Breakpoint (Add a category load break point))))
Add Java Exception Breakpoint (Add a Java Abnormal Status Breakpoint)
Debug ... (turn on remapping launch configuration dialog)
Debug Last Launched (in the final startup job defect mode): F11
Display (org.eclipse.jdt.debug.ui.commands.display) (Display): Ctrl Shift D
, Assess the results of the selected representation. )
Execute (Execute: Turn on the Operation Start Configuration dialog): Ctrl u
Inspect (observation): Ctrl Shift I
(Note: This instruction uses the "Representation" inspection screen to display the environment definition of the stack box or variable of the execution stack or variable.
Next, the result of the selected representation or variable is inspected. )
Profile LaSt Launched (Overview of the Total Job)
Resume: F8
Run LaSt Launched (quickly perform the most recent startup job in execution mode): Ctrl F11
Run LaSt Launched External Tool (External Tools that perform the previous start-up)
Run to line (executed to the specified line, can be suspended without setting breakpoint): Ctrl R
Skip all breakpoints (without clearing breakpoints, skip all breakpoints)
Step INTO (enter the sub-sector): F5
Step INTO Selection (enter the currently selected statement): Ctrl F5
Step over (Skip): F6
Step Return (Jumping out): F7
SUSPEND (suspended execution)
Terminate (stop execution)
Toggle Breakpoint (new / removed, breakpoint): Ctrl Shift B
Toggle Method Breakpoint (new / removed, method breakpoint)
Toggle Step Filters (step by step by filtering): Shift F5
Toggle WatchPoint (new / removal, field monitor point)
Search - Search Declaration in Hierarchy (Declaration of selected elements in its class)
Declaration in project (see the announcement of selected elements in the project)
Declaration in working set (announcement of selected elements in the work)
Declaration in Workspace (Declaration of selected elements in the workspace): Ctrl g
Exception Occurrences (Search Exceptions)
FILE SECH (Open Search Search page)
Implementors in Project (Search for the actuals of the selected interface in the project)
Implementors in Working Set (Search for the actors selected for the selected interface)
Implementors in Workspace (Search for the actors of the selected interface in the workspace)
Occurrences in file (all the appearances of selected elements in its declaration): Ctrl Shift U
Read Access in hierarchy (see reading reference in its class)
Read Access in Project (Search for the reading reference for the selected element in the project)
Read Access in working set (reading reference for searching for selected elements)
Read Access in Workspace (see the reading reference for the selected element in the workspace)
References in hierarchy (search for selected elements in its class)
References in project (search for the reference to the selected element in the project)
References in Working Set (Reference to the selected element in the work)
References in Workspace (search for selected elements in the workspace): Ctrl Shift G
Referring tests (query test)
Write Access in hierarchy (search for the write reference for the selected element in its class)
Write Access In Project (search for the write reference for the selected element in the project)
Write Access in Working Set (write reference for searching for selected elements)
Write Access in Workspace (search for the write reference for the selected element in the workspace)
Source - program code
Add Block Comment (the word line selected in multiple lines / ** / package): Ctrl Shift /
Add Constructors from Superclass (adds a construct from the parent category)
Add import (for the category reference to the category): Ctrl Shift M
Add Javadoc Comment: Alt Shift J
Comment (Note)
Externalize strings (open "external character string" wizard)
Find strings to externalize (looking for strings to be external)
Format (program code automatic version): Ctrl Shift F
Format Element (Format Element)
Generate Constructor Using Fields (using fields to generate constructors)
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 "Generate Delegation Method" dialog box, can add a delegation method for type fields)
Generate getters and setters (Enable the "Getter and Setter" dialog box, you can automatically establish getter and setter methods for the fields)
Indent Line (single row, it will follow format set by formatter): Ctrl i
Mark Occurrences: Alt Shift O
Organize Imports: Ctrl Shift O
(Note: This is a very convenient function, simple explanation takes the time: Suppose we play in the program, JFrame SRC;
Import Any SWING category, at this time, Eclipse will have an error warning, and the JFRAME will be marked with the red bottom line.
Ctrl Shift O, Eclipse will automatically: import javax.swing.jframe; add to the program code. )
Override / IMPLEMENT METHODS (Opening "overwriting / actual method" dialog, overwritten or actually actually actually active method in the current category)
Remove block Comment / ** /): Ctrl Shift
Remove Occurrence Annotations: Alt Shift U
Sort MEMBERS (Sort Member)
Source Quick Menu (Quick Menu for Source in Editing District): Alt Shift S
Surround with try / catch block (with the TRY / CATCH block)
Toggle Comment (plus single-line annotation / cancel single line annotation): CTRL / or CTRL 7 or CTRL SHIFT C
Uncomment (canceled annotation)
◎ Supplement, SOURCE hides the hotkey:
1.Shift Right (shift to the right, increase the inhalation level of the currently selected word line): Tab
2. SHIFT LEFT (shift left to reduce the contraced level of the currently selected word line): Shift Tab
Team - Team SYNCHRONIZE (synchronization)
Text Editing - Text Editing
Claer Mark (Clear Tag)
Copy Lines, copy into a new line): Ctrl Alt arrow button '↓'
Cut line (cut a single line)
Cut to Beginning of Line (cut text, range to the beginning of a single line)
Cut to End of Line (cut the text, range is selected) to a single line end)
Delete Line (Delete single line text): Ctrl D
Delete next (delete next line)
Delete Next Word: Ctrl Delete
Delete Previous Word: Ctrl Backspace
Delete to Beginning Of Line (Delete Text, Scope to the beginning of a single line)
DELETE TO End of Line (Delete text, range to the single line end)
Duplicate Lines (the text will be selected, copied to new row): Ctrl Alt arrow keys '↑'
Insert Line Above Current Line (insert a new line above the line at the cursor): Ctrl Shift Enter
Insert Line Below Current Line (insert a new line below the row): Shift Enter
Line Down (the cursor is moved down)
LINE END (Cursor is moving to the end of the row)
Line Start (the cursor is moving to the beginning)
Line Up (the cursor is moved up)
Move Lines Down (move the line down): Alt arrow keys '↓'
Move Lines Up moves up to the line): Alt arrow keys '↑'
Next Column (Cursor is moved to the next column)
Next Word (Cursor moving to the next word): Ctrl arrow keys '→'
Page Down (move to next)
Page Up (move to the previous page)
Previous Column (Cursor is moving to the previous column)
Previous Word (Cursor moves to the previous group): Ctrl arrow keys '←'
Scroll line down: Ctrl arrow keys '↓'
Scroll line up (upward): Ctrl arrow keys '↑'
SELECT LINE DOWN (select Next)
SELECT LINE END (selected to the end of the text)
Select Line Start (selected to the beginning of the text)
SELECT LINE UP (selected one line)
Select Next Column (select the next column)
Select Next Word: Ctrl Shift Direction Key '→'
SELECT Page Down (choose the next page)
SELECT Page Up (Choose Previous)
SELECT Previous Column (selected one column)
Select Previous Word: Ctrl Shift Direction button '←'
SELECT TEXT END (selected to the end of the text editor)
SELECT TEXT START (select to the beginning of the text editor)
SELECT Window End (selected to the end of the window)
SELECT Window Start (selected to the beginning of the window)
SET MARK (Setting Tag)
SWAP Mark (Exchange Tag)
Text end (cursor moving to the bottom of the text editor)
Text Start (cursor moving to the top of the text editor)
Toggle Overwrite (overwriting / insert mode): Insert
To Lower Case (the English words that will be selected to lowercase): Ctrl Shift Y
To Upper Case (the English word will be selected to uppercase): Ctrl Shift x
Window End (moving the cursor to the end of the window)
Window Start (move the cursor to the beginning)
Views --view
Ant (open ANT view window)
Bookmarks (Open book sign check window)
Breakpoints (open breakpoint view window)
Classic Search (turn on the traditional search check window)
Console (Open the main console search window)
CVS Annotate (open CVS Annotate View window)
CVS Editors (Enable CVS Editor View window)
CVS Repositories (Enable CVS Repositories View window)
CVS Resource History (Enable CVS Resource History View window)
Debug (turn on the error detection window)
Display (org.eclipse.jdt.debug.ui.displayview) (Turn on Error - Show View Window)
Error Log (Open Error Record View Window)
Expressions (Turn on Error - Indicated View Window)
Java Call Hierarchy (open the Call Hierarchy View window)
Java Declaration (Open the announcement window)
Javadoc (open the JavadoC view window)
Java Members (Turn on Category Member Viewing Window)
Java Package Explorer: Alt Shift Q, P
Java Packages (open Java Suite View window)
Java Projects (open Java project viewing window)
Java Type Hierarchy (Open Class Skills View Window): Alt Shift Q, T
Java Types (open the Java Category View window)
JUnit (open the JUnit View window)
Memory (Turn on Error - Memory View Window)
Navigator (Open Guide)
OUTLINE: Alt Shift Q, O
Plug-in Dependencies (Open Plug-in Dependencies View window)
Plug-in Registry (open the Plug-in Registry View window)
PLUG-INS (open Plug-INS View window)
Problems: Alt Shift Q, x
Progress (turn on execution schedule window)
Properties (ORG.ECLIPSE.UI.VIEWS.PROPERTY/SHEET) (On Properties Viewing Window)
Registers (turn on the error-buffer view window)
Search (Open Search View Window): Alt Shift Q, S
Synchronize: Alt Shift Q, Y
Tasks (Open Job Sightseeing Window) Threads and Monitors (Turn on Defront)
Variables (turn on the error-variable view window)
◎ Supplement: Views on the Views View window:
Window-> show view-> Other.
Window - Window
Activate Editor: F12
Close All Perspectives (Close All Views)
Close Perspective (close view)
Customize Perspective
Hide Editors (Hide Editor)
Lock The Toolbars (Lock Tools)
Maximize Active View Or Editor (editing area maximization): Ctrl M
Next Editor (switch to the next editor): Ctrl F6
Next perspective: Ctrl F8
Next View (Switch to the next view): Ctrl F7
Open Editor Drop Down (in floating way in the editing area, display fast switching editor menu): Ctrl E
Pin Editor (fixed editor)
Preferences (open preference setting)
Previous Editor (Switch to the Previous Editor): Ctrl Shift F6
Previous perspective: Ctrl Shift F8
Previous View: Ctrl Shift F7
RESET PERSPECTIVE (reset view)
Save perspective as (stored as new view)
Show Ruler Context Menu (Display Ranker Content Menu): Ctrl F10
Show SELECTED Element Only (program code only displaying the selected element)
Show System Menu (Show System Menu): Alt -
Show View Menu (Show View Menu): Ctrl F10
Switch to Editor: Ctrl Shift E