You are on page 1of 5

< Learn These Shortcuts Eclipse Cheat Sheet

Text Editing I

alt+ctrl+DOWN Copy lines


shift+↵ Insert line below current line
alt+ctrl+UP Duplicate lines
ctrl+DEL Delete next word
shift+ctrl+DEL Delete to end of line
shift+ctrl+↵ Insert line above current line
ctrl+BACKSPACE Delete previous word
shift+ctrl+X To upper case
ctrl+D Delete line
shift+ctrl+Y To lower case

Text Editing II

alt+DOWN Move lines down


alt+UP Move lines up
HOME Line start
ctrl+END Text end
END Line end
ctrl+HOME Text start
alt+ctrl+J Join lines

Text Selection

shift+alt+LEFT Select previous element


shift+ctrl+RIGHT Select next word
shift+END Select line end
shift+alt+A Toggle block selection
shift+alt+RIGHT Select next element
shift+ctrl+LEFT Select previous word
shift+HOME Select line start

Java Source Editing

ctrl+2L Quick assist - assign to local variable


shift+alt+O Toggle mark occurrences
ctrl+2R Quick assist - rename in file
ctrl+2F Quick assist - assign to field
shift+alt+U Remove occurrence annotations
shift+ctrl+M Add import
shift+ctrl+/ Add block comment
shift+ctrl+\ Remove block comment
shift+ctrl+F Format
shift+alt+J Add javadoc comment
shift+alt+Z Surround with quick menu

Java Source Navigation

shift+alt+B Show in breadcrumb


ctrl+O Quick outline
ctrl+T Quick hierarchy

Java Refactoring

shift+alt+R Rename
shift+alt+L Extract local variable
shift+alt+M Extract method
shift+alt+T Show refactor quick menu
shift+alt+V Move
shift+alt+C Change method signature
shift+alt+I Inline

Debug

ctrl+R Debug run to line


shift+alt+DE Debug eclipse application
shift+alt+DO Debug OSGi Framework
shift+alt+DT Debug JUnit test
shift+alt+DP Debug JUnit plug-in test
shift+alt+DR Debug on server
shift+alt+DA Debug Java applet
shift+alt+DJ Debug Java application
shift+alt+DQ Debug Ant build

Search

ctrl+H Open search dialog


shift+ctrl+U Show occurrences in file quick menu
ctrl+G Search declaration in workspace
alt+ctrl+G Find text in workspace
shift+ctrl+G Search references in workspace

Run

shift+alt+XA Run Java applet


shift+alt+XE Run eclipse application
shift+alt+XP Run JUnit plug-in test
shift+alt+XQ Run Ant build
shift+alt+XJ Run Java application
shift+alt+XO Run OSGi framework
shift+alt+XT Run JUnit test
shift+alt+XR Run on server

Tasks View

alt+UP Go to previous unread task


alt+DOWN Go to next unread task
shift+alt+DOWN Mark task read and move to next
shift+alt+I Mark task incomplete
shift+alt+C Mark task complete
shift+alt+R Mark task read
ctrl+↵ Open selected task
shift+alt+UP Mark task read and move to prev task
shift+alt+U Mark task unread

Debug Memory View

alt+ctrl+M Add memory block


ctrl+T Toggle memory monitors page
ctrl+W Close rendering
alt+ctrl+N Next memory monitor
ctrl+N New rendering

Views

shift+alt+QL Show error log


shift+alt+QV Show variables view
shift+alt+QT Show type hierarchy
shift+alt+QJ Show javadoc
shift+alt+QS Show search
shift+alt+QY Show synchronize view
shift+alt+QZ Show history
shift+alt+QH Show cheat sheets
shift+alt+QK Show task list
shift+alt+QP Show package explorer
shift+alt+QB Show breakpoints
shift+alt+QC Show console
shift+alt+QX Show problems
shift+alt+QD Show declaration view
shift+alt+QO Show outline view

Misc I

shift+alt+F Force return


ctrl+/ Toggle comment
shift+alt+S Show source quick menu
shift+ctrl+O Organize imports
shift+ctrl+D Display
shift+ctrl+I Toggle insert mode
alt+/ Word completion

Misc II

shift+ctrl+Q Quick diff toggle


ctrl+[SPACE] Content assist
shift+ctrl+[SPACE] Context information
ctrl+F Find and replace
shift+alt+G Generate code
ctrl+L Go to line
alt+PAGEDOWN Next sub-tab
alt+PAGEUP Previous sub-tab

Misc III

ctrl+Q Go to last edit location


shift+alt+W Show in...
shift+ctrl+T Open type
alt+ctrl+H Open call hierarchy
shift+ctrl+H Open type hierarchy
alt+LEFT Backward history
alt+RIGHT Forward history
shift+ctrl+R Open resource
shift+alt+ctrl+M Open manifest

Misc IV
alt+↵ Java breakpoint properties
shift+ctrl+I Inspect
ctrl+Z EOF
shift+ctrl+N All instances
shift+ctrl+K Find previous
ctrl+= Zoom in

You might also like