Tuesday, November 11, 2014

Keyboard Shortcuts for Eclipse

A list of common keyboard shortcuts to use with the Eclipse integrated development environment

Move Caret

Home Move to beginning of current line
End Move to end of current line
Ctrl+Home Move to beginning of file
Ctrl+End Move to end of file
Ctrl+ Move one word to the left
Ctrl+ Move one word to the right

Select Text

Ctrl+a Select all text
Shift+move caret Select text

Edit Text

Ctrl+x Cut selected text
Ctrl+c Copy selected text
Ctrl+v Paste text
 
Ctrl+z Undo last action
Ctrl+y Redo last undone action
 
Ctrl+d Delete current line
Ctrl+f Open find and replace window
Ctrl+Space Open content assist window

Indention

Tab Increase indention of selected text
Shift+Tab Decrease indention of selected text
Ctrl+i Fix indention of selected text or current line

Comments

Ctrl+/ Comment or uncomment selected text or current line (adds or removes '//')
Ctrl+Shift+/ Add block comment around selected text (adds '/*…*/')
Ctrl+Shift+| Remove block comment

Run and Debug

Ctrl+F11 Save and run
F11 Debug
F5 Step into function
F6 Step over
F7 Step return
F8 Resume
Ctrl+F2 Terminate

Other

Ctrl+p Print current file
Ctrl+s Save current file

No comments:

Post a Comment