Eclipse Cheat Sheet
File Shortcuts Navigate Shortcuts
Creates New Project, File, Class,
ALT + SHIFT + N F3 Open Declaration
etc
CTRL + N Creates New Project via Wizard F4 Open Type Hierarchy
CTRL + SHIFT + R Open a file by name. CTRL + ALT + H Open Call Hierarchy
CTRL + W Close current file SHIFT + F2 Open Attached Javadoc
CTRL + S Save current file CTRL + SHIFT + T Open Type
CTRL + SHIFT + S Save All files CTRL + SHIFT + H Open Type in Hierarchy
F2 Rename CTRL + F12 Open Task
F5 Refresh content of resource CTRL + F9 Activate Task
CTRL + P Print
Show Properties Dialog CTRL + SHIFT + F9 Deactivate Task
ALT + ENTER
Navigate to a specific method or
CTRL + O ALT + SHIFT + B Show In Breadcrumb
member within the current file.
CTRL + SHIFT + T Open a class or type by name CTRL + O Quick Outline
CTRL + SHIFT + E Switch between open editor files. CTRL + T Quick Type Hierarchy
CTRL + SHIFT + F Format the code in the current file. CTRL + . Next Annotation
Delete the current line or selected
CTRL + D CTRL + , Previous Annotation
lines.
Toggle comment/uncomment the
CTRL + / (Slash) CTRL + Q Last Edit Location
selected lines.
Find a specific string within the
CTRL + F CTRL + L Go to Line
current file.
Go to a specific line number in the CTRL + SHIFT +
CTRL + G. Jump to the Previous Method
current file Down
Jump to Next Method Home
Jump to Beginning of
Perform a comprehensive search
CTRL + H CTRL + SHIFT + Up Indentation Hit Home again to
within the workspace or file.
jump to the beginning of line
End Jump to End of Indentation
Jump to the beginning of the
CTRL + SHIFT + P Jump to the matching bracket. CTRL + Home
source
Edit Shortcuts CTRL + End Jump to the End of the source
CTRL + Z Undo CTRL + Right Jump one word to the right
CTRL + Y Redo CTRL + Left Jump one word to the left
CTRL + X Cut Java Source Editing
Quick assist - assign to local
CTRL + C Copy Ctrl + 2L
variable
CTRL + V Paste Alt + Shift + O Toggle mark occurrences
Delete Delete current or selected text Ctrl + 2R Quick assist - rename in file
Prepared By:Mohammad Shah Miran Copyright ©2023 linuxsimply.com| All rights reserved.
Eclipse Cheat Sheet
CTRL + A Select All Text Ctrl + 2F Quick assist - assign to field
Expand Selection to Enclosing Remove occurrence
ALT + SHIFT + Up Alt + Shift + U
Element annotations
ALT + SHIFT +
Expand Selection to Next Element Ctrl + Shift + M Add import
Right
Expand Selection to Previous
ALT + SHIFT + Left Ctrl + Shift + ? Add block comment
Element
ALT + SHIFT +
Restore Last Selection Ctrl + Shift + | Remove block comment
Down
F2 Show Tooltip Information Ctrl + Shift + F Format
CTRL + Space Content Assist Alt + Shift + J Add javadoc comment
ALT + / Word Completion Alt + Shift + Z Surround with quick menu
CTRL + 1 Quick Fix View Shortcuts
Java Refactoring ALT + SHIFT + Q, C Console
Alt + Shift + R Rename ALT + SHIFT + Q, D Declaration
Alt + Shift + L Extract local variable ALT + SHIFT + Q, L Error Log
Alt + Shift + M Extract method ALT + SHIFT + Q, J Javadoc
Alt + Shift + T Show refactor quick menu ALT + SHIFT + Q, O Outline
Alt + Shift + V Move ALT + SHIFT + Q, P Package Explorer
Alt + Shift + C Change method signature ALT + SHIFT + Q, X Problems
Alt + Shift + I Inline ALT + SHIFT + Q, S Search
Window Shortcuts ALT + SHIFT + Q, K Task List
CTRL + SHIFT + - Toggle Split Editor (Horizontal) ALT + SHIFT + Q, T Type Hierarchy
CTRL + SHIFT + { Toggle Split Editor (Vertical) ALT + SHIFT + Q, Q Other Views
ALT + - Show System Menu Source Shortcuts
CTRL + 3 Quick Access CTRL + / Toggle Comments
CTRL + M Toggle Active Window CTRL + SHIFT + / Add Block Comment
F12 Activate Editor Window CTRL + SHIFT + \ Remove Block Comment
CTRL + F6 Next Editor ALT + SHIFT + J Generate Element Comment
CTRL + SHIFT +
Previous Editor CTRL + I Correct Indentation
F6
CTRL + SHIFT + E Switch to Editor CTRL + SHIFT + F Format all Code in Editor
CTRL + SHIFT + E Switch to Editor CTRL + SHIFT + M Add Import Statements
CTRL + F7 Next View CTRL + SHIFT + O Organize all imports
CTRL + SHIFT +
Previous View Build/Run/Debug Shortcuts
F7
CTRL + F8 Next Perspective CTRL + B Build Entire Project
CTRL + SHIFT +
Previous Perspective F11 Debug
F8
Prepared By:Mohammad Shah Miran Copyright ©2023 linuxsimply.com| All rights reserved.
Eclipse Cheat Sheet
Search Shortcuts
CTRL + F11 Run
CTRL + H Search
CTRL + SHIFT + L Quick Search CTRL + SHIFT + B Toggle Breakpoint
CTRL + F Find / Replace Dialog F5 Step Into
CTRL + K Find Next CTRL + F5 Step Into Selection
CTRL + SHIFT + K Find Previous F6 Step Over
CTRL + J Incremental Find Next F7 Step Return
CTRL + SHIFT + J Incremental Find Previous F8 Skip to Next Breakpoint
CTRL + G Find Declaration in Workspace CTRL + R Run to Line
CTRL + ALT + G Find in Workspace SHIFT + F5 Use Step Filters
CTRL + SHIFT +
Find Reference in Workspace CTRL + R Debug run to line
G
Miscellaneous I CTRL + SHIFT+ D, E Debug eclipse application
ALT + SHIFT + F Force return CTRL + SHIFT+ D, O Debug OSGi Framework
CTRL + / Toggle comment CTRL + SHIFT+ D, T Debug JUnit test
ALT + SHIFT + S Show source quick menu CTRL + SHIFT+ D, P Debug JUnit plug-in test
CTRL + SHIFT + O Organize imports CTRL + SHIFT+ D, R Debug on server
CTRL + SHIFT + D Display CTRL + SHIFT+ D, A Debug Java applet
CTRL + SHIFT + I Toggle insert mode CTRL + SHIFT+ D, J Debug Java application
ALT + / Word completion CTRL + SHIFT+ D, Q Debug Ant build
CTRL + SHIFT + Q Quick diff toggle Miscellaneous II
CTRL + SPACE Content assist CTRL + SHIFT + H Open type hierarchy
CTRL + SHIFT +
Context information ALT+ LEFT Backward history
SPACE
CTRL + F Find and replace ALT+ RIGHT Forward history
ALT + SHIFT + G Generate code CTRL + SHIFT + R Open resource
CTRL + ALT+ SHIFT
CTRL + L Go to line Open manifest
+M
ALT+ PAGEDOWN Next sub-tab ALT+ ENTER Java breakpoint properties
ALT+ PAGEUP Previous sub-tab CTRL + SHIFT + I Inspect
CTRL + Q Go to last edit location CTRL + Z EOF
ALT + SHIFT + W Show in. CTRL + SHIFT + N All instances
CTRL + SHIFT + T Open type CTRL + SHIFT + K Find previous
CTRL + ALT+ H Open call hierarchy CTRL + = Zoom in
Prepared By:Mohammad Shah Miran Copyright ©2023 linuxsimply.com| All rights reserved.