Keyboard shortcuts for the Workbench, Java development tools, and the debugger

The following tables show shortcut keys that are common across the Workbench and across the text and Java editors supplied with Eclipse.

The first table shows the default key bindings. The second table shows the key bindings for the Emacs key bindings shipped with Eclipse.

Default Settings

Key {Key} by itself SHIFT+{Key} CTRL+{Key} CTRL+SHIFT+{Key} ALT+SHIFT+{Key} ALT+{Key} CTRL+ALT+{Key}
A     Edit / Select All     See Note 1 See Note 2
B       (JDT Debug) Add/Remove Breakpoint      
C     Edit / Copy        
D     (JDT Debug) Display        
E     (JDT editor) Next Problem, Edit/ Delete line (JDT editor) Previous Problem, Edit/Delete Line to End      
F     Edit / Find/Replace (JDT Editor) Format      
G     (JDT Editor) Search for Declarations in Workspace  (JDT Editor) Search for References in Workspace      
H     Edit / Search (JDT Editor) Open Type Hierarchy      
I              
J     Edit / Incremental Find        
K     Edit / Find Next Edit / Find Previous      
L     Edit / Go to Line        
M       (JDT editor) Add Import      
N     File / New / Other        
O       (JDT editor) Organize Imports      
P     File / Print        
Q     (JDT Debug) Inspect        
R     (JDT Debug) Run to Line        
S     File / Save File / Save All      
T       (JDT) Open Type      
U     (JDT Debug) Run Snippet        
V     Edit / Paste        
W    

Edit/Show Rulers

Window/Switch to Editor      
X     Edit / Cut        
Y     Edit / Redo (JDT) Refactor / Redo      
Z     Edit / Undo (JDT) Refactor / Undo      
Space     (JDT editor) Content Assist (JDT editor) Parameter Hints    (Windows) Window menu  
Enter           File / Properties  
Backspace           (Windows) Undo (X11) Shutdown X server
Esc     (Windows) Start menu     (Windows) Next app window  
Tab (JDT editor) Shift Right (JDT editor) Shift Left       (Windows) Window switcher  
Insert   (Windows) Paste (Windows) Copy        
Home              
End              
Page Up              
Page Down              
Insert              
Delete Edit / Delete (Windows) Cut Edit / Delete        
Hyphen (-)           Show System Menu (X11) Decrease resolution
Plus (+)             (X11) Increase resolution
Front Slash (/)     (JDT editor) Comment    

 

 
Back Slash (\)     (JDT editor) Uncomment        
Period(.) Navigate/Next 
Comma(,) Navigate/Previous
Left Arrow        

(JDT editor) Expand Selection to Previous Element

   
Right Arrow        

(JDT editor) Expand Selection  to Next Element

   
Up Arrow        

(JDT editor) Expand Selection  to Enclosing Element

   
Down Arrow        

(JDT editor) Expand Selection  to Last Element

   
F1 Help Help Help Help     (X11) Switch to console
F2 (Navigator view) Rename, (JDT) Show JavaDoc (JDT) Open External JavaDoc          (X11) Switch to console
F3 (JDT) Open on Selection           (X11) Switch to console
F4 (JDT) Open Type Hierarchy   File / Close File / Close All   (Windows) Close window (X11) Switch to console
F5 (Navigator view) Refresh; (Properties view) Refresh; (Debug) Step Into           (X11) Switch to console
F6 (Debug) Step Over   Next Editor Previous Editor   (Windows) Switch to previous window in same program (X11) Switch to console
F7 (Debug) Run to Return   Next View Previous View     (X11) Switch to console
F8 (Debug) Resume   Next Perspective Previous Perspective     (X11) Switch to console
F9 (Debug) Relaunch last           (X11) Switch to console
F10 (Windows) Activate menubar (Windows, Motif) Context menu Show View Menu       (X11) Switch to console
F11 (Debug) Run/Debug last   (Debug) Run       (X11) Switch to console
F12 Activate Editor           (X11) Switch to console
1     (JDT Editor) Quick Fix        
2              

Emacs Key Bindings

Key {Key} by itself SHIFT+{Key} CTRL+{Key} ALT+{Key} Esc+{Key} ALT+SHIFT+
{Key}
CTRL+SHIFT+
{Key}
CTRL+ALT+
{Key}
CTRL+X,
CTRL+{Key}
CTRL+X,{Key}
A     Edit/ Go to start of line            
B     Edit/Go to previous column Edit/Go to previous word Edit/Go to previous word     Window/Switch to Editor  
C             Close All Editors  
D     Edit/Delete next            
E     Edit/Go to end of line            
F     Edit/Go to next column Edit/Go to next word Edit/Go to next word   (JDT editor) Format      
G     (JDT editor)  Search for Declarations in Workspace, Clear Mark       (JDT editor)  Search for References in Workspace     Edit/Go to line
H               Edit/Select All
I                
J                
K     Edit/Delete Line to End         File/ Close Editor  
L                
M           (JDT editor) Add Import      
N     Edit/Go down one line            
O     (+Ctrl+K) Edit/Delete Line to Beginning     (JDT editor) Organize Imports      
P     Edit/Go up one line            
Q                
R     Edit/Find/Replace Edit/Find/Replace        
S     Edit/Find Incremental         File/Save Editor File/Save All Editors
T                
U               Undo
V     Edit/Page Down Edit/Page Up Edit/Page Up        
W     Edit/Cut Edit/Copy Edit/Copy        
X             Edit/Swap Mark  
Y     Edit/Paste            
Z     Edit/Line down Edit/Line up Edit/Line up        
Space     (+Ctrl+2) Edit/Set Mark            
Enter File/Properties  
Backspace        
Esc        
Tab      
Insert Edit/Paste Edit/Copy      
Delete Edit/Cut      
Home  
End  
Page Up  
Page Down  
Insert  
Delete  
Hyphen (-) Show System Menu    
Underscore(_)    
Plus (+)    
Front Slash (/) (JDT editor) Comment

(JDT editor) Content Assist

   
Back Slash (\) (JDT editor) Uncomment    
Question Mark (?)

(JDT editor) Parameter Hints

   
Period(.) Navigate/Next  Edit/Go to text end Edit/Go to text end    
Comma(,) Navigate/Previous Edit/Go to text start Edit/Go to text start    
Less than (<) Edit/Go to text start Edit/Go to text start  
Greater than (<>) Edit/Go to text end Edit/Go to text end  
Left Arrow

(JDT editor) Expand Selection to Previous Element

 
Right Arrow

(JDT editor) Expand Selection  to Next Element

 
Up Arrow

(JDT editor) Expand Selection  to Enclosing Element

 
Down Arrow

(JDT editor) Expand Selection  to Last Element

 
F1    
F2 (JDT editor)  Show Javadoc (JDT editor)  Open External Javadoc    
F3 (JDT) Open on Selection    
F4 (JDT editor)  Open Type Hierarchy File/Close Editor     File/Close All Editors    
F5    
F6 Next Editor     Previous Editor    
F7 Next View Previous View    
F8 Next Perspective Previous Perspective    
F9 Edit/Undo File/Print File/Print    
F10 Edit/Redo   Show View Menu        
F11    
F12 Activate Editor    
1 (JDT Editor) Quick Fix    

 

Related tasks
Accessibility Features in Eclipse

Changing the key bindings

Navigating the user interface by using the keyboard

Related references
Font and color settings using the Window Preferences

Copyright IBM Corp. and others 2000, 2002. All Rights Reserved.