Show Menu
Cheatography

Eclipse for Java Keyboard Shortcuts (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Text Editing I

alt+ct­rl+UP
Duplicate lines
alt+ct­rl+DOWN
Copy lines
shift+­ctrl+↵
Insert line above current line
shift+↵
Insert line below current line
ctrl+B­ACK­SPACE
Delete previous word
ctrl+DEL
Delete next word
shift+­ctr­l+DEL
Delete to end of line
ctrl+D
Delete line
shift+­ctrl+X
To upper case
shift+­ctrl+Y
To lower case

Text Editing II

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

Text Selection

shift+­ctr­l+LEFT
Select previous word
shift+­ctr­l+RIGHT
Select next word
shift+HOME
Select line start
shift+END
Select line end
shift+­alt­+LEFT
Select previous element
shift+­alt­+RIGHT
Select next element
 

Java Source Editing

shift+­ctrl+/
Add block comment
shift+­ctrl+F
Format
shift+­ctrl+M
Add import
ctrl+2 F
Quick assist - assign to field
ctrl+2 L
Quick assist - assign to local variable
ctrl+2 R
Quick assist - rename in file
shift+­alt+J
Add javadoc comment
shift+­alt+O
Toggle mark occurr­ences
shift+­alt+U
Remove occurrence annota­tions

Java Source Navigation

shift+­alt+B
Show in breadcrumb
ctrl+O
Quick outline
ctrl+T
Quick hierarchy

Java Refact­oring

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

Run

shift+­alt+XJ
Run Java applic­ation
shift+­alt+XT
Run JUnit test
shift+­alt+DJ
Debug Java applic­ation
shift+­alt+DT
Debug JUnit test
ctrl+R
Debug run to line